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

nessli420/aurora

Measured 17 November 2026, 07:28 UTC, at code version eb06715

First survey, so nothing to compare with yet Bus factor: not measured

Bus factor is not measured: One contributor carries this repository.

CAI score 53.4out of 100 Adequate
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 large codebase: 143,813 lines of product code in 17 projects, tests not counted · Estimated rebuild effort: about 1.3 person-years · Weakest lens: Production Readiness, 39.1

Findings by how serious they are

9 critical 2278 serious 116 minor

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

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 07:28 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 ▸

54of 54 dimensions measured by tools.
2391of 2403 findings point to an exact file and line, so you can open each one in the code. The other 12 concern the repository as a whole, such as missing documentation.
54dimensions across 6 lenses, read from 143,813 lines of product code in 17 projects.
Chapters

Executive summary

nessli420/aurora falls short of our standard for production, in part because we found no automated security scanning of the code, its secrets or its dependencies. It scores 53.4 out of 100 and is rated Adequate, and eight of its nine critical findings are security problems.

Production Readiness, at 39.1, is the weakest lens and counts most in the score. The best first step for the work it takes is fixing the package under a licence on your banned list, worth about 4.6 points. Adding automated security scanning would lift Production Readiness itself, worth about 9.2 points. Raising Production Readiness to 70 would lift the score to about 64.8.

Five pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Two passwords or keys are open to anyone who can read the repository, and one weakness in the code could be used by an attacker. Pinning each tool to an exact version, replacing each exposed password or key and fixing the weaknesses the scanner points to would close these risks. The package under a licence on your banned list needs replacing, or clearing with your legal team.

The product code is 143,813 lines, about €190,000 to rebuild.

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

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

If Production Readiness rose from 39.1 to 70, the lowest score rated Strong, the score would rise from 53.4 to about 64.8.

Code composition: what the lines of code are
Product code 75%Tests 25%
Rebuild cost: about €190,000 · Estimate
Cost to rebuild€62,000 to €310,000, for 1,041 to 3,303 hours of work, about 1.3 person-years for 1 to 3 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 53. 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.
SizeLarge: 143,813 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

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

Top priorities

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

1
Resolve the 1 Banned license finding(s) in License Compliance.
Raises the score by about 4.6 points · Low effort · License Compliance
2
Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
Raises the score by about 9.2 points · Medium effort · Security & performance tooling
3
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).
Raises the score by about 5.1 points · Medium effort · Outbound HTTP resilience

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 €190,000 to build again, about 1.3 person-years of work. Its weakest lens is Production Readiness, at 39.1 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 1 Banned license finding(s) in License Compliance. Of all the actions in this report, it raises the score most for the work it takes: about 4.6 points for low effort, because it clears the 1 License Compliance 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 4.1 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 10% to 22% on every change. The history of the code shows how much it changes: about 374,918 lines over the last 90 days, which is about 1,520,501 lines a year. At that pace, the extra work comes to an estimated 371.1 to 2226.3 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 — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch :app :app :core :core :app->:core :extension-sdk :extension-sdk :app->:extension-sdk :decent:decent-media3-decoder-flac :decent:decent-media3-decoder-flac :decent:decent-usb-audio-driver :decent:decent-usb-audio-driver :decent:decent-usb-audio-wrapper-media3 :decent:decent-usb-audio-wrapper-media3 :desktop :desktop :desktop->:core Aurora Aurora aurora_alsa aurora_alsa aurora_dsd aurora_dsd aurora_dst aurora_dst aurora_fp aurora_fp aurora_llm aurora_llm whisper whisper aurora_llm->whisper aurora_native aurora_native decent_usb_audio decent_usb_audio flacJNI flacJNI

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.

515 modules, with 659 dependencies between them. 9 loops run through 74 of the modules, marked above the diagonal.

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

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 aurora.music.data.routes2 aurora.music.desktop.natives3 aurora.music.playback.haptics4 decent.usbaudio5 aurora.music.data.artwork6 aurora.music.data.cache7 aurora.music.data.listening8 aurora.music.data.remote9 aurora.music.data.rules10 aurora.music.data.tuning11 aurora.music.desktop.natives.MediaSession12 aurora.music.mix13 aurora.music.playback.dsd14 aurora.music.playback.network.endpoint15 aurora.music.desktop.web16 aurora.music.playback.network17 aurora.music.playback18 aurora.music.playback.engine19 aurora.music.data.ir20 aurora.music.data.settings21 aurora.music.data.container22 aurora.music.data23 aurora.music.desktop.audio.decode24 aurora.music.model25 aurora.music.ai.DjMode26 aurora.music.desktop.audio27 aurora.music.ai28 aurora.music.desktop.video29 aurora.music.desktop.platform30 aurora.music.viewmodel31 aurora.music.desktop.mac32 aurora.music.desktop.player33 aurora.music.ui.screens.settings34 aurora.music.ui.screens.visualizer35 aurora.music.desktop.audio.mix36 aurora.music.ui.screens.player37 aurora.music.ui.components38 aurora.music.desktop39 aurora.music.desktop.connect40 aurora.music.desktop.ui
1 aurora.music.data.routes
2 aurora.music.desktop.natives
3 aurora.music.playback.haptics
4 decent.usbaudio
5 aurora.music.data.artwork22
6 aurora.music.data.cache12
7 aurora.music.data.listening31
8 aurora.music.data.remote10
9 aurora.music.data.rules21
10 aurora.music.data.tuning3
11 aurora.music.desktop.natives.MediaSession2
12 aurora.music.mix1314
13 aurora.music.playback.dsd4
14 aurora.music.playback.network.endpoint32
15 aurora.music.desktop.web3
16 aurora.music.playback.network29121
17 aurora.music.playback45211322618146911
18 aurora.music.playback.engine832
19 aurora.music.data.ir1
20 aurora.music.data.settings1121142790
21 aurora.music.data.container43101
22 aurora.music.data211231251453112134114
23 aurora.music.desktop.audio.decode1
24 aurora.music.model2
25 aurora.music.ai.DjMode13
26 aurora.music.desktop.audio33187667
27 aurora.music.ai372
28 aurora.music.desktop.video112
29 aurora.music.desktop.platform3116
30 aurora.music.viewmodel362450212
31 aurora.music.desktop.mac311
32 aurora.music.desktop.player23121336610533
33 aurora.music.ui.screens.settings114822465111
34 aurora.music.ui.screens.visualizer111
35 aurora.music.desktop.audio.mix6211251
36 aurora.music.ui.screens.player3710131
37 aurora.music.ui.components91221
38 aurora.music.desktop1164212361371611
39 aurora.music.desktop.connect11911352
40 aurora.music.desktop.ui1121
Uses a module listed above itPart of a loopThe module itself
1 aurora.music.data.routes2 aurora.music.desktop.natives3 aurora.music.playback.haptics4 decent.usbaudio5 aurora.music.data.artwork6 aurora.music.data.cache7 aurora.music.data.listening8 aurora.music.data.remote9 aurora.music.data.rules10 aurora.music.data.tuning11 aurora.music.desktop.natives.MediaSession12 aurora.music.mix13 aurora.music.playback.dsd14 aurora.music.playback.network.endpoint15 aurora.music.desktop.web16 aurora.music.playback.network17 aurora.music.playback18 aurora.music.playback.engine19 aurora.music.data.ir20 aurora.music.data.settings21 aurora.music.data.container22 aurora.music.data23 aurora.music.desktop.audio.decode24 aurora.music.model25 aurora.music.ai.DjMode26 aurora.music.desktop.audio27 aurora.music.ai28 aurora.music.desktop.video29 aurora.music.desktop.platform30 aurora.music.viewmodel31 aurora.music.desktop.mac32 aurora.music.desktop.player33 aurora.music.ui.screens.settings34 aurora.music.ui.screens.visualizer35 aurora.music.desktop.audio.mix36 aurora.music.ui.screens.player37 aurora.music.ui.components38 aurora.music.desktop39 aurora.music.desktop.connect40 aurora.music.desktop.uiaurora.music.data.routes1aurora.music.desktop.natives2aurora.music.playback.haptics3decent.usbaudio4aurora.music.data.artwork5aurora.music.data.cache6aurora.music.data.listening7aurora.music.data.remote8aurora.music.data.rules9aurora.music.data.tuning10aurora.music.desktop.natives.MediaSession11aurora.music.mix12aurora.music.playback.dsd13aurora.music.playback.network.endpoint14aurora.music.desktop.web15aurora.music.playback.network16aurora.music.playback17aurora.music.playback.engine18aurora.music.data.ir19aurora.music.data.settings20aurora.music.data.container21aurora.music.data22aurora.music.desktop.audio.decode23aurora.music.model24aurora.music.ai.DjMode25aurora.music.desktop.audio26aurora.music.ai27aurora.music.desktop.video28aurora.music.desktop.platform29aurora.music.viewmodel30aurora.music.desktop.mac31aurora.music.desktop.player32aurora.music.ui.screens.settings33aurora.music.ui.screens.visualizer34aurora.music.desktop.audio.mix35aurora.music.ui.screens.player36aurora.music.ui.components37aurora.music.desktop38aurora.music.desktop.connect39aurora.music.desktop.ui40221231102132131443232912145211322618146911832111211427904310121123125145311213411412133318766737211231163624502123112312133661053311482246511111162112513710131912211164212361371611119113521121+475 more modules (most-connected shown)

At a glance — Code Health · 58.6 · Adequate · gated by D2, D4 ·

At a glance — Architecture · 86.1 · Adequate · gated by D26 ·

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

At a glance — Readiness · 39.1 · Weak · gated by P3, P7 ·

At a glance — Security · 68.3 · Checked 4 of 10 · gated by D36 ·

At a glance — Performance · 100.0 · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection10High / Critical
A03:2025 — Software Supply Chain Failures4Medium
A07:2025 — Authentication Failures3High / Critical

Roadmap

Top priorities: Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing; 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); Resolve the 1 Banned license finding(s) in License Compliance.

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

Do thisHelpsEffortDimension
Resolve the 1 Banned license finding(s) in License Compliance.+4.6 ptsLowLicense Compliance
Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.+9.2 ptsMediumSecurity & performance tooling
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).+5.1 ptsMediumOutbound HTTP resilience
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.+2.3 ptsLowADR Quality
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+3.0 ptsMediumRelease Hygiene
Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.+2.3 ptsMediumCancellation propagation
Swallowed exception (caught, then discarded)+1.9 ptsMediumException handling
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.+1.9 ptsMediumArchitecture documentation

File quality

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

FileScoreBandWorst signal
REDACTED4.6MixedStatic Analysis (SAST): High: REDACTED
desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt4.8MixedCyclomatic Complexity: AuroraAppKt.Shell (cyclomatic 209)
app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt5.5MixedCyclomatic Complexity: YoutubeResolver.findMusicVideo (cyclomatic 22)
REDACTED6.4MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED6.9MixedStatic Analysis (SAST): Medium: REDACTED
app/src/main/java/com/aurora/music/ui/AuroraApp.kt7.0MixedCyclomatic Complexity: AuroraAppKt.AuroraApp (cyclomatic 211)
app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt7.0MixedCyclomatic Complexity: PlayerScreenKt.PlayerScreen (cyclomatic 128)
app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt7.0MixedCyclomatic Complexity: DetailScreenKt.DetailScreen (cyclomatic 88)
app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt7.0MixedCyclomatic Complexity: TuningProjectsScreenKt.TuningProjectsScreen (cyclomatic 60)
app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt7.0MixedCyclomatic Complexity: PodcastClient.parseFeed (cyclomatic 52)
app/src/main/java/com/aurora/music/ui/components/ListItems.kt7.0MixedCyclomatic Complexity: ListItemsKt.SongRow (cyclomatic 50)
app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt7.0MixedCyclomatic Complexity: ProcessingRackScreenKt.ProcessingRackScreen (cyclomatic 48)
app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt7.0MixedCyclomatic Complexity: LyricsScreenKt.ImmersiveLyrics (cyclomatic 46)
app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt7.0MixedCyclomatic Complexity: MixScreenKt.MixScreen (cyclomatic 46)
app/src/main/java/com/aurora/music/playback/PlaybackService.kt7.0MixedCyclomatic Complexity: PlaybackService.serviceListener (cyclomatic 41)
app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt7.0MixedCyclomatic Complexity: SignInScreenKt.SignInScreen (cyclomatic 38)
app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt7.0MixedCyclomatic Complexity: LibraryScreenKt.LibraryScreen (cyclomatic 36)
app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt7.0MixedCyclomatic Complexity: SourcesSettingsScreenKt.SourcesSettingsScreen (cyclomatic 36)
app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt7.0MixedCyclomatic Complexity: ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cyclomatic 35)
app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt7.0MixedCyclomatic Complexity: EqEditorKt.EqCurve (cyclomatic 35)

How the grades work

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

Critical — 9

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 — 2278

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 — 116

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

Could not be resolved — 17

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 54 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, the weighted average across measured dimensions.

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

What we checked — 54 dimensions across the health lenses
D1D2D3D4D5D6D13D14D15D17D19D20D21D26D27D28D29D34D35D36D44AX10AX3AX4AX6M1M2M3M4P1P2P3P6P7PF3X1X12X13X14X15X16X17X18X19X2X21X25X26X27X28X29X3X30X5

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

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

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

Tools & methods

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

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

Every finding is locatable in findings.md. Run 01a1e868-4e63-75bf-a276-ac8071a33814.

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

Run transparency — what happened this run

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

  • D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.kt) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.kt) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a Gradle build resolved 433 artifact(s) across its subprojects (178 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming Consistency — 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 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (extension-sdk/build.gradle.kts), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
  • 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/com/aurora/music/data/AppContainer.kt`, `app/src/main/java/com/aurora/music/data/AudioDecoder.kt`, `app/src/main/java/com/aurora/music/data/DiscordRpc.kt`, `app/src/main/java/com/aurora/music/data/SonicEngine.kt`, `app/src/main/java/com/aurora/music/extensions/ExtensionManager.kt`, … (+110 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.
  • AX1 Captive dependencies — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in core/src/main/kotlin/com/aurora/music/data/remote/PlexClient.kt, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Boot via AndroidApp (app). the Android app did not build — `./gradlew :app:assembleDebug` exited 1: otagger:2.3.15. > Could not get resource 'https://jitpack.io/com/github/Adonai/jaudiotagger/2.3.15/jaudiotagger-2.3.15.pom'. > Could not GET 'https://jitpack.io/com/github/Adonai/…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it).
  • C1 Data Protection — 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. 'android.database.sqlite' is imported (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
  • 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.
  • C3 Audit Trail — 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. 'android.database.sqlite' is imported (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
  • C4 Data Retention — 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. 'android.database.sqlite' is imported (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
  • C5 Data-Subject Rights — 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. 'android.database.sqlite' is imported (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
  • 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, Python, c, cpp 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, Python, c, cpp 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.
  • M4 Documentation accuracy — 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. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P1 CI/CD gates — 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. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
  • 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.
  • 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. 238 further occurrence(s) are not listed individually; the score already reflects all 278.
  • 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. 29 further occurrence(s) are not listed individually; the score already reflects all 69.
  • X7 Silent fallback defaults — 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. 27 further occurrence(s) are not listed individually; the score already reflects all 67.

Repo exclusion declarations: 2 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

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.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity4.1 / 10Weak✓ Tool-verified

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

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

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

247 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was AuroraAppKt.AuroraApp at 211. A further 16 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 VisualizerLabelsKt.label at 32 — they are counted neither in the figure above nor in this dimension's score. 6 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/com/aurora/music/data/VisualizerLabels.kt (VisualizerLabelsKt.label at 32), desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerLabels.kt (VisualizerLabelsKt.label at 32), core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererClient.kt (RendererClient.readResponse at 19), desktop/src/main/kotlin/com/aurora/music/ui/components/ShortcutsDialog.kt (ShortcutsDialogKt.label at 18), app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt (AboutSettingsScreenKt.AboutSettingsScreen at 16), and 1 more not listed here. 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.

TuningProjectsScreenKt.TuningProjectsScreen (cyclomatic 60) · ×2app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45
PodcastClient.parseFeed (cyclomatic 52) · ×2app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77
VisualizerCanvasKt.VisualizerCanvas (cyclomatic 37) · ×2app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:17
EqEditorKt.EqCurve (cyclomatic 35) · ×2app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:169
SonicFeatures.analyzeSamples (cyclomatic 32) · ×2app/src/main/java/com/aurora/music/data/SonicFeatures.kt:24

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

What to do

  1. Bring the 4 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with AuroraAppKt.AuroraApp (cyclomatic 211), AuroraAppKt.Shell (cyclomatic 209), PlaybackAudioOutput.reportLocal (cyclomatic 167). — 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 4 together lifts Cyclomatic Complexity from 4.1 to about 4.9/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

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

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

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

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

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

375 method(s) exceeded the cognitive complexity threshold of 15; the worst was AuroraAppKt.AuroraApp at 278.

ListItemsKt.SongRow (cognitive 97) · ×2app/src/main/java/com/aurora/music/ui/components/ListItems.kt:79
PodcastClient.parseFeed (cognitive 79) · ×2app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77
TuningProjectsScreenKt.TuningProjectsScreen (cognitive 64) · ×2app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45
SonicFeatures.analyzeSamples (cognitive 62) · ×2app/src/main/java/com/aurora/music/data/SonicFeatures.kt:24
EqEditorKt.EqCurve (cognitive 56) · ×2app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:169

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

What to do

  1. Bring the 8 bodies over 120 down to 120 or less in Cognitive Complexity — start with AuroraAppKt.AuroraApp (cognitive 278), AuroraAppKt.Shell (cognitive 262), PlaybackAudioOutput.reportLocal (cognitive 233). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 8 together lifts Cognitive Complexity from 2.0 to about 3.4/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

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

D3 · God Classes7.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.

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

94 god class(es) detected.

MethodTooLong: AuroraAppKt.Shell · ×34desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:264
TooManyMethods: DesktopPlaybackEngine · ×26desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:53
FileTooLong: ui/AuroraApp.kt · ×24app/src/main/java/com/aurora/music/ui/AuroraApp.kt
ClassTooLong: DesktopPlaybackEngine · ×10desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:53

What to do

  1. Resolve the 34 MethodTooLong finding(s) in God Classes — start with SourcesSettingsScreen.kt (2), TuningProjectsScreen.kt (2), MixScreen.kt (2). — One of this dimension's main actionable groups (34 warning-level).
  2. Resolve the 26 TooManyMethods finding(s) in God Classes — start with MixViewModel.kt (2), DesktopPlaybackEngine.kt, MusicRepository.kt. — One of this dimension's main actionable groups (26 warning-level).
  3. Resolve the 24 FileTooLong finding(s) in God Classes — start with AuroraApp.kt (2), PlayerScreen.kt (2), LibraryScreen.kt (2). — One of this dimension's main actionable groups (24 warning-level).

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

D4 · Code Duplication0.3 / 10Critical✓ Tool-verified

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

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

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

891 duplicated block group(s) detected. 24.2 % of the production lines (34,758 of 143,813) are in a reported copy. A further 487 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.

Duplicated block (5 lines × 2) · ×85app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:91
Duplicated block (6 lines × 2) · ×82app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:223
Duplicated block (7 lines × 2) · ×75app/src/main/java/com/aurora/music/ui/AuroraApp.kt:651
Duplicated block (8 lines × 2) · ×64app/src/main/java/com/aurora/music/data/DiscordRpc.kt:166
Duplicated block (11 lines × 2) · ×57app/src/main/java/com/aurora/music/data/SonicEngine.kt:186

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

What to do

  1. Resolve the 85 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with AuroraApp.kt (5), LibraryScreen.kt (5), EqualizerScreen.kt (4). — One of this dimension's main actionable groups (85 warning-level).
  2. Resolve the 82 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with AuroraApp.kt (4), SourcesSettingsScreen.kt (4), VisualizerRenderers.kt (4). — One of this dimension's main actionable groups (82 warning-level).
  3. Resolve the 75 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with DetailScreen.kt (4), PlayerScreen.kt (4), ListItems.kt (3). — One of this dimension's main actionable groups (75 warning-level).

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

D5 · Coupling9.5 / 10Stronggated by 1 serious finding✓ Tool-verified

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

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

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

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

17 production modules (Gradle+CMake), 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; 1 module(s) off the main sequence, with abstractness counted on 7 of the 17 (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).

Off the main sequence: :core

What to do

  1. Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).

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

D6 · Cohesion (LCOM4)9.9 / 10Stronggated by 2 serious findings✓ Tool-verified

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

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

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

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

2 of 396 classes have LCOM4 above 3.

Low cohesion: PlayHistoryStore (LCOM4 5) · ×2core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:39

What to do

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

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

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

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

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

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

REDACTED scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance8.0 / 10Adequategated by 1 critical finding✓ Tool-verified

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

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

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

1 of 37 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 10 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. 7 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 33 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.

Banned license: org.jellyfin.media3:media3-ffmpeg-decoder

What to do

  1. Resolve the 1 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (1 issue-level).

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

D15 · Churn × Complexity Hotspots8.6 / 10Strong✓ Tool-verified

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

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

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

Top hotspots: app/src/main/java/com/aurora/music/ui/AuroraApp.kt (82×211=17302); desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt (48×209=10032); app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt (47×128=6016) Repeated repair below the complexity floor: desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt (3 of 5 changes were fixes); desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt (3 of 5 changes were fixes); desktop/src/main/kotlin/com/aurora/music/desktop/natives/WindowNative.kt (3 of 4 changes were fixes)

Hotspot: app/src/main/java/com/aurora/music/ui/AuroraApp.kt · ×103app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154
Repeated repair: desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt · ×3desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt:21

What to do

  1. Resolve the 103 Hotspot finding(s) in Churn × Complexity Hotspots — start with AuroraApp.kt (2), PlayerScreen.kt (2), DetailScreen.kt (2). — One of this dimension's main actionable groups (103 warning-level).
  2. Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with EngineSettingsBinder.kt, NavMenu.kt, WindowNative.kt. — One of this dimension's main actionable groups (3 warning-level).

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

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

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

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

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

No architecture decision records were found.

No ADRs founddesktop/build.gradle.kts:168

What to do

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

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

D21 · Naming Consistency9.5 / 10Exemplary✓ Tool-verified

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.

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

1 naming inconsistencies among 199 declarations measured against a convention their peers follow.

`playlistItemID` spells `ID` where 286 names in the project spell it `Id`core/src/main/kotlin/com/aurora/music/data/remote/PlexClient.kt:393

✓ On the Gold path — maintain.

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

D26 · Project Cohesion2.5 / 10Weak✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic.

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

3 of 8 build units (Gradle) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion · ×3core/build.gradle.kts:1

What to do

  1. Resolve the 3 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with build.gradle.kts (3). — One of this dimension's main actionable groups (3 recommendation-level).

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

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)8.0 / 10Adequategated by 2 critical findings✓ Tool-verified

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.

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

2 finding(s): 0 critical, 2 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

  1. Resolve the 2 REDACTED finding(s) in Secrets (history) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
  2. 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.

D29 · Static Analysis (SAST)6.8 / 10Adequate✓ Tool-verified

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

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

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

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

10 finding(s): 0 critical, 6 high, 4 medium, 0 low. 5 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 14 file(s) — `app/src/androidTest/java/com/aurora/music/playback/MediaSearchIntentDeviceTest.kt` (lines 86–101), `app/src/main/cpp/chromaprint/avresample/avcodec.h` (line 53, line 62), `app/src/main/cpp/chromaprint/chromaprint.h`, `app/src/main/cpp/dst/decoder.c` (line 72, line 73, line 144, …), `app/src/main/java/com/aurora/music/extensions/ExtensionManager.kt` (line 178, line 188, line 220, …), … (+9 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
  3. No action in Static Analysis (SAST) — all 5 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (5 issue-level, 0 of them charged here).

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling9.8 / 10Stronggated by 6 serious findings✓ Tool-verified

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

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

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

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

Strongest change-coupling: Destinations.kt↔AuroraApp.kt 100%; SettingsKeys.kt↔SettingsStore.kt 80%; SettingsKeys.kt↔SettingsModels.kt 64%

Change coupling: SettingsKeys.kt ↔ SettingsStore.kt · ×5core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt:1
Change-coupling hub: Destinations.kt → AuroraApp.kt, SettingsKeys.kt, SettingsStore.ktapp/src/main/java/com/aurora/music/navigation/Destinations.kt

What to do

  1. Resolve the 5 Change coupling finding(s) in Change Coupling — start with SettingsKeys.kt (2), AuroraApp.kt (2), YoutubeResolver.kt. — One of this dimension's main actionable groups (5 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with Destinations.kt. — One of this dimension's main actionable groups (1 warning-level).

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

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

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

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

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

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

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

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

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

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

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

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

AX6 · Interface segregation9.3 / 10Exemplary✓ Tool-verified

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

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

  • `MediaBackend` declares 21 abstract methods: `ping`, `home`, `allAlbums`, `allArtists`, `allPlaylists`, `allSongs`, `starredSongs`, `starredCount`, `starredIds`, `songFor`, `search`, `scrobble`, `radio`, `createPlaylist`, `updatePlaylist`, `deletePlaylist`, `setStarred`, `detail`, `serverLyrics`, `streamUrl`, `coverArtUrl`. 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. — core/src/main/kotlin/com/aurora/music/data/MediaBackend.kt:16
  • `JellyfinApi` declares 24 abstract methods: `publicInfo`, `authenticate`, `quickConnectEnabled`, `quickConnectInitiate`, `quickConnectStatus`, `authenticateWithQuickConnect`, `items`, `item`, `itemRaw`, `updateItem`, `artists`, `playlistItems`, `similar`, `lyrics`, `favorite`, `unfavorite`, `markPlayed`, `playbackStarted`, `playbackProgress`, `playbackStopped`, `createPlaylist`, `addToPlaylist`, `removePlaylistItems`, `deleteItem`. 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. — core/src/main/kotlin/com/aurora/music/data/remote/JellyfinApi.kt:13
  • `SpotifyApi` declares 34 abstract methods: `me`, `savedTracks`, `tracksContains`, `myPlaylists`, `savedAlbums`, `followedArtists`, `topTracks`, `topArtists`, `recentlyPlayed`, `newReleases`, `recommendations`, `search`, `album`, `albumTracks`, `artist`, `artistTopTracks`, `artistAlbums`, `playlist`, `playlistTracks`, `playlistItems`, `track`, `tracks`, `saveTracks`, `removeTracks`, `followArtists`, `unfollowArtists`, `saveAlbums`, `removeAlbums`, `followPlaylist`, `unfollowPlaylist`, `createPlaylist`, `changePlaylistDetails`, `addToPlaylist`, `removeFromPlaylist`. 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. — core/src/main/kotlin/com/aurora/music/data/remote/SpotifyApi.kt:110
  • `SubsonicApi` declares 24 abstract methods: `ping`, `getOpenSubsonicExtensions`, `reportPlayback`, `getAlbumList2`, `getAlbum`, `getSong`, `getLyricsBySongId`, `getArtists`, `getMusicFolders`, `getIndexes`, `getMusicDirectory`, `getArtist`, `getPlaylists`, `getPlaylist`, `createPlaylist`, `updatePlaylist`, `deletePlaylist`, `getStarred2`, `getRandomSongs`, `getSimilarSongs2`, `search3`, `star`, `unstar`, `scrobble`. 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. — core/src/main/kotlin/com/aurora/music/data/remote/SubsonicApi.kt:7
  • `AppearanceSettings` declares 33 abstract methods: `setVisualizer`, `setGestureSwipeArtwork`, `setGestureSwipeDismiss`, `setGestureDoubleTap`, `setHaptics`, `setMusicHaptics`, `setMusicHapticsIntensity`, `setMusicHapticsDetail`, `setMusicHapticsTexture`, `setMusicHapticsOffset`, `setThemeMode`, `setThemeStyle`, `setAccentMode`, `setAccentPreset`, `setAccentColor`, `setFontScale`, `setTypeface`, `setCornerStyle`, `setPlayerSeekStyle`, `setLyricsSync`, `setLyricsTranslate`, `setPlayerWaveBars`, `setPlayerArtSize`, `setPlayerGradient`, `setPlayerShowUtilities`, `setMiniStyle`, `setMiniProgress`, `setLibraryColumns`, `setLibraryTabs`, `setTabletSetting`, `resetTabletSettings`, `setNavLayout`, `setHomeSectionHidden`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/AppearanceSettings.kt:14
  • `DspSettings` declares 42 abstract methods: `setProcessingRack`, `migrateProcessingRack`, `resetProcessingRack`, `setOutputRatePolicy`, `updateOutputRatePolicy`, `applyEqBindingIfEnabled`, `setReverb`, `setAutoEqAutoSwitch`, `setActiveEqProfile`, `applyLegacyEqProfile`, `upsertEqBinding`, `bindEqToCurrentOutput`, `removeEqBinding`, `setEqEnabled`, `setEqPreset`, `setEqBands`, `setBassBoost`, `setVirtualizer`, `setLoudness`, `setReplayGain`, `setDspMode`, `setDspGraphicBands`, `setDspGraphic`, `setDspParametric`, `setDspPreamp`, `setDspBalance`, `setDspWidth`, `setDspCrossfeed`, `setDspLimiterEnabled`, `setDspCeiling`, `setDspCompEnabled`, `setDspCompThresh`, `setDspCompRatio`, `setDspConvEnabled`, `setDspConvMakeup`, `setDspConvIr`, `setDspGraphicLayout`, `setDspSaturation`, `setDspDelayLeft`, `setDspDelayRight`, and 2 more. 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. — core/src/main/kotlin/com/aurora/music/data/settings/DspSettings.kt:20
  • `GeneralSettings` declares 16 abstract methods: `setOnboardingSeen`, `setWhatsNewSeen`, `setWhatsNewEnabled`, `setUpdateAnnounced`, `setStarPromptSeen`, `setHistoricalListeningMs`, `setOfflineMode`, `setDataSaver`, `setMobileDataDownloads`, `setInsightsEnabled`, `setInsightsDevice`, `setInsightsAudioPath`, `setInsightsPlaces`, `setInsightsLocationHistory`, `setSimpleMode`, `setPrivateSession`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/GeneralSettings.kt:14
  • `IntegrationSettings` declares 19 abstract methods: `setSquigBaseUrl`, `setSquigTarget`, `setAcoustIdKey`, `saveLastfm`, `clearLastfm`, `setLastfmEnabled`, `setLastfmKeys`, `setLastfmPendingToken`, `setLastfmArtistRules`, `saveListenBrainz`, `clearListenBrainz`, `setListenBrainzEnabled`, `saveDiscord`, `clearDiscord`, `setDiscordEnabled`, `setDiscordImgur`, `setDiscordShowAlbum`, `setDiscordActivityName`, `setDiscordAppId`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/IntegrationSettings.kt:12
  • `LibrarySettings` declares 20 abstract methods: `setSonicAutoAnalyze`, `setArtistEnrichment`, `setPreferLocalSources`, `setSourcePriority`, `setCatalogueLibraryCopies`, `setCatalogueMatchRelaxed`, `setCatalogueLosslessOnly`, `setUnifiedLibrary`, `setLocalFolders`, `setLocalExcludedFolders`, `setMergeSources`, `setMergeFeatures`, `setLyricsSources`, `setArtworkLookupEnabled`, `setTrackCovers`, `setAnimatedCoversEnabled`, `setAnimatedCoversFolder`, `setLrclibEnabled`, `setArtistSeparators`, `setTrackSort`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/LibrarySettings.kt:15
  • `PlaybackSettings` declares 32 abstract methods: `setAudioCacheEnabled`, `setAudioCacheLimit`, `setAiDjSpoken`, `setConnectSwitch`, `setSkipSilence`, `setCrossfade`, `setCrossfadeCurve`, `setCrossfadeHeadroom`, `setGapless`, `setDefaultSpeed`, `setMono`, `setStreamWifi`, `setStreamCellular`, `setDownloadBitrate`, `setYouTubeDownloadFormat`, `setYouTubeDownloadBitrate`, `setYouTubeDownloadAnonymous`, `setYouTubeDownloadArtwork`, `setPreferHighRes`, `setBitPerfectUsb`, `setUsbOutputMode`, `setUsbDsdMode`, `setUsbDsdExperimental`, `setUsbHardwareVolume`, `setUsbFallbackPolicy`, `setIndependentOutput`, `setScrobble`, `setAutoplayRadio`, `setResumePodcasts`, `setResumeLongTracks`, `setLongFormSkipButtons`, `setAlarm`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/PlaybackSettings.kt:15
  • `PresetSettings` declares 19 abstract methods: `saveProcessingPreset`, `savePresetRule`, `removePresetRule`, `movePresetRule`, `setPresetRulesEnabled`, `setPresetRuleManualHold`, `transitionPresetRule`, `setRouteRulesEnabled`, `holdCurrentRoute`, `chooseRouteHeadphones`, `bindCurrentRoute`, `removeRouteBinding`, `applyProcessingPreset`, `applyRoutePreset`, `duplicateProcessingPreset`, `renameProcessingPreset`, `deleteProcessingPreset`, `exportProcessingPreset`, `importProcessingPreset`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:24
  • `RackLibrarySettings` declares 17 abstract methods: `importImpulse`, `importCurrentImpulse`, `renameImpulse`, `deleteImpulse`, `prepareImpulse`, `selectImpulse`, `exportImpulse`, `saveTuningTarget`, `deleteTuningTarget`, `revertTuningAppend`, `saveTuningProject`, `deleteTuningProject`, `appendTuningProjectToRack`, `appendTuningProjectWithUndo`, `saveRackSubchain`, `deleteRackSubchain`, `appendRackSubchain`. 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. — core/src/main/kotlin/com/aurora/music/data/settings/RackLibrarySettings.kt:32
  • `PlaybackEngine` declares 26 abstract methods: `setQueue`, `insert`, `append`, `move`, `remove`, `replace`, `clear`, `seekTo`, `next`, `previousItem`, `play`, `pause`, `stop`, `setRepeat`, `setShuffle`, `setSpeed`, `setVolume`, `sleepFade`, `wakeFade`, `configure`, `setOutput`, `applyDsp`, `setLegacyImpulse`, `setRackImpulses`, `dspReport`, `rackMeters`. 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. — desktop/src/main/kotlin/com/aurora/music/desktop/audio/PlaybackEngine.kt:14
  • `PlayerController` declares 33 abstract methods: `playAll`, `play`, `playCollection`, `shuffleCollection`, `shufflePlay`, `startSonicRadio`, `startAutoDj`, `addToQueue`, `playNext`, `jumpTo`, `removeFromQueue`, `clearQueue`, `moveQueueItem`, `saveQueueAsPlaylist`, `togglePlay`, `seekTo`, `next`, `previous`, `toggleShuffle`, `cycleRepeat`, `toggleLikeCurrent`, `refreshLikes`, `checkLiked`, `toggleLike`, `setExpanded`, `setSpeed`, `resetSpeedPitch`, `setSleepTimer`, `setSleepEndOfTrack`, `setPreferredDevice`, `setExclusiveOutput`, `setVolume`, `stopPlayback`. 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. — desktop/src/main/kotlin/com/aurora/music/desktop/player/PlayerController.kt:71

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
M1 · Documentation (README)7.3 / 10Strong✓ Tool-verified

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

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

What to do

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

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

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.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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

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

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

P1 · CI/CD gates8.5 / 10Strong✓ 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.

What to do

  • Run the test suite in CI via an explicit runner step (`./gradlew test` for the toolchain this pipeline already uses) and gate merges on it.
P2 · Observability7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

What to do

  • Add a health-check endpoint (Spring Boot Actuator's /actuator/health, or a /health route) so orchestrators and load balancers can probe liveness/readiness.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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

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

  • No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
  • `app/build.gradle.kts` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — app/build.gradle.kts:98

What to do

  • Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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. (×2) — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:73, desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:70

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).
PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

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

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

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.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

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

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

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

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

What to do

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

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

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

X17 · Uncapped recursion over a caller-supplied document1.7 / 10Critical✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `ProcessingPresetCodec.readAudio` is public, takes a document from its caller (line 213) and hands it to `ProcessingPresetCodec.validateShape`, which calls itself at line 177 with a piece of `actual` — the function is not `tailrec`, so every call is a real frame — and nowhere in `ProcessingPresetCodec.validateShape` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `ProcessingPresetCodec.validateShape` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/ProcessingPreset.kt:177
  • `SoundCloudBackend.song` is public, takes a document from its caller (line 432) and hands it to `SoundCloudBackend.art`, which calls itself at line 427 with a piece of `item` — the function is not `tailrec`, so every call is a real frame — and nowhere in `SoundCloudBackend.art` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `SoundCloudBackend.art` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:427
  • `objects` is public, takes a document from its caller (line 34) and hands it to `visit`, which calls itself at line 37 with a piece of `node` (and at line 38) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicClient.kt:37
  • `YouTubeMusicParser.home` is public, takes a document from its caller (line 17) and hands it to `visit`, which calls itself at line 20 with a piece of `node` (and at line 35) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:20
  • `YouTubeMusicParser.categories` is public, takes a document from its caller (line 48) and hands it to `visit`, which calls itself at line 51 with a piece of `node` (and at line 65, line 66) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:51
  • `YouTubeMusicParser.results` is public, takes a document from its caller (line 77) and hands it to `visit`, which calls itself at line 83 with a piece of `node` (and at line 137, line 138) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:83

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

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

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

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

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.

X2 · Cancellation propagation4.0 / 10Weak✓ Tool-verified

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/14 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.
  • `ensureModel` suspends, but makes its request with `URL(…).openConnection()`, 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`. (×2) — desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:62, app/src/main/java/com/aurora/music/mix/StemSeparator.kt:65
  • `artworkBytes` suspends, but makes its request with `newCall(…).execute()`, 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`. — desktop/src/main/kotlin/com/aurora/music/desktop/player/MediaControls.kt:165
  • `fetchEmbedTracks` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:67
  • `request` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/AppleMusicClient.kt:128
  • `uploadFromUrl` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/ImgurUploader.kt:17
  • `uploadBytes` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/ImgurUploader.kt:26
  • `userInfo` suspends, but makes its request with `newCall(…).execute()`, 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`. — REDACTED:45
  • `fetchImage` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/MusicBrainzClient.kt:98
  • `refreshLogin` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:97
  • `attempt` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:112
  • `candidates` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/data/artwork/CoverArtClient.kt:32
  • `fetchPart` suspends, but makes its request with `newCall(…).execute()`, 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`. — core/src/main/kotlin/com/aurora/music/ai/DjModelStore.kt:117
  • `fetch` suspends, but makes its request with `newCall(…).execute()`, 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/com/aurora/music/data/AutoEqRepository.kt:69

What to do

  • Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

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

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

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

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

Other · Code Health — Whether 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` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items 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.

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.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling5.5 / 10Adequate✓ Tool-verified

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

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

  • `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. (×30) — desktop/src/main/kotlin/com/aurora/music/viewmodel/AiPlaylistViewModel.kt:79, desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.kt:53, desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:166, …
  • 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. (×6) — desktop/src/main/kotlin/com/aurora/music/ui/components/TileMap.kt:89, decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:99, decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:109, …
  • `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. (×3) — desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:725, desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:816, desktop/src/main/kotlin/com/aurora/music/data/DiscordIpc.kt:112
  • `catch (_: RuntimeException)` 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. — decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDevice.kt:95

What to do

  • Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X5 · Nullable reference types9.9 / 10Exemplary✓ Tool-verified

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

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

Reference — by lens

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

LensScoreRatingImpact
Code Health58.6Adequate — gated by D2, D4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture86.1Adequate — gated by D26Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity65.9Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness39.1Weak — gated by P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security68.3Checked 4 of 10Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance100.0ExemplaryStrongest area.
Unscored — 3 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.
  • X6 Hand-rolled structured-format parsing — 8 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 5 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.

  • C3 Audit Trail — Not assessed: this repository stores data through 'android.database.sqlite' (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6) but declares no persisted model this check reads (Room/JPA/Spring Data/MongoDB @Entity and Realm classes, Exposed and Ktorm table columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL migrations and SQLDelight files). Personal data may be written through raw SQL or a hosted backend, so whether its changes need an audit trail could not be established, and the trail's absence is not scored.
  • C4 Data Retention — Not assessed: this repository stores data through 'android.database.sqlite' (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6) but declares no persisted model this check reads (Room/JPA/Spring Data/MongoDB @Entity and Realm classes, Exposed and Ktorm table columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL migrations and SQLDelight files). Personal data may be written through raw SQL or a hosted backend, so whether a retention limit applies here could not be established, and its absence is not scored.
  • C5 Data-Subject Rights — Not assessed: this repository stores data through 'android.database.sqlite' (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6) but declares no persisted model this check reads (Room/JPA/Spring Data/MongoDB @Entity and Realm classes, Exposed and Ktorm table columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL migrations and SQLDelight files). Personal data may be written through raw SQL or a hosted backend, so whether data-subject rights apply here could not be established, and their absence is not scored.
  • 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 — 54 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this 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. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads.
  • 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: otagger:2.3.15. > Could not get resource 'https://jitpack.io/com/github/Adonai/jaudiotagger/2.3.15/jaudiotagger-2.3.15.pom'. > Could not GET 'https://jitpack.io/com/github/Adonai/…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it) This is a statement about this run, not a statement about your application: nothing here says the app is inaccessible, only that it was never run.
  • C1 Data Protection — Not assessed: this repository stores data through 'android.database.sqlite' (app/src/main/java/com/aurora/music/data/DetailedListeningStore.kt:6) but declares no persisted model this check reads (Room/JPA/Spring Data/MongoDB @Entity and Realm classes, Exposed and Ktorm table columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL migrations and SQLDelight files). Personal data may be written through raw SQL or a hosted backend, so the absence of a personal-data field here is not evidence that none is stored, and encryption at rest is not scored over a subject that could not be established.
  • 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.
  • D10 Test Quality — ~48686 lines of test source are present (.kt) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — the .kt suite was found but not re-run
  • D12 Dependency Hygiene — Not scored — a Gradle build resolved 433 artifact(s) across its subprojects (178 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — bus factor 1 — one contributor carries this repository
  • 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 — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .java, .kt, .py, 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
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — 115 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 797 value object(s); 3 domain event(s); its domain events are published by services or handlers — no domain entity raises one
  • 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
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • 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.
  • 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
  • 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.
  • 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.

Critical — 9 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D28 · Secrets (history) · REDACTED · ×2
  • REDACTED
  • REDACTED
D14 · License Compliance · Banned license · ×1
  • Banned license: org.jellyfin.media3:media3-ffmpeg-decoder — `org.jellyfin.media3:media3-ffmpeg-decoder` 1.5.0+1 is published on Maven Central under `GPL-3.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 2278 finding(s)
D15 · Churn × Complexity Hotspots · Hotspot · ×103
  • Hotspot: app/src/main/java/com/aurora/music/ui/AuroraApp.kt app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt changed 82 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 211 in AuroraAppKt.AuroraApp at line 154. 16 of those changes were fix/bug commits, and the other 66 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/AuroraApp.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: desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:264 — desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 209 in AuroraAppKt.Shell at line 264. 5 of those changes were fix/bug commits, and the other 43 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:168 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in PlayerScreenKt.PlayerScreen at line 168. 11 of those changes were fix/bug commits, and the other 36 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:172 — desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in PlayerScreenKt.PlayerScreen at line 172. 3 of those changes were fix/bug commits, and the other 23 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/playback/PlaybackService.kt app/src/main/java/com/aurora/music/playback/PlaybackService.kt:184 — app/src/main/java/com/aurora/music/playback/PlaybackService.kt changed 54 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in PlaybackService.serviceListener at line 184. 15 of those changes were fix/bug commits, and the other 39 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/playback/PlaybackService.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:88 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in DetailScreenKt.DetailScreen at line 88. 6 of those changes were fix/bug commits, and the other 19 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.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: desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:124 — desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in DetailScreenKt.DetailScreen at line 124. 4 of those changes were fix/bug commits, and the other 16 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/components/ListItems.kt app/src/main/java/com/aurora/music/ui/components/ListItems.kt:79 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in ListItemsKt.SongRow at line 79. 2 of those changes were fix/bug commits, and the other 20 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/components/ListItems.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:669 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in PlayerViewModel.syncFromController at line 669. 14 of those changes were fix/bug commits, and the other 33 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:74 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SettingsScreenKt.SettingsScreen at line 74. 4 of those changes were fix/bug commits, and the other 23 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.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: desktop/src/main/kotlin/com/aurora/music/desktop/Main.kt desktop/src/main/kotlin/com/aurora/music/desktop/Main.kt:76 — desktop/src/main/kotlin/com/aurora/music/desktop/Main.kt changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in MainKt.main at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/desktop/Main.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: desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:118 — desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ListItemsKt.SongRow at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.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: desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:105 — desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in SignInScreenKt.SignInScreen at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:72 — app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in HomeScreenKt.HomeScreen at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:157 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in LibraryScreenKt.LibraryScreen at line 157. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.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: desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:84 — desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in SettingsScreenKt.SettingsScreen at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:414 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in LyricsScreenKt.ImmersiveLyrics at line 414. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.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: desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:313 — desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in DesktopPlayer.sync at line 313. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/data/LocalLibrary.kt app/src/main/java/com/aurora/music/data/LocalLibrary.kt:241 — app/src/main/java/com/aurora/music/data/LocalLibrary.kt changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in LocalLibrary.scan at line 241. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/data/LocalLibrary.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:96 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in SignInScreenKt.SignInScreen at line 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.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: core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:185 — core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in VoiceAligner.place at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- core/src/main/kotlin/com/aurora/music/data/LyricTiming.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: desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:229 — desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in LibraryScreenKt.LibraryScreen at line 229. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.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: desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:114 — desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in PlaybackDockKt.PlaybackDock at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:83 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in SourcesSettingsScreenKt.SourcesSettingsScreen at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:49 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in ProcessingRackScreenKt.ProcessingRackScreen at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.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.
  • + 78 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×85
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:91 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:91-95 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:107-111 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:303 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:303-307 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:238-242 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/playback/network/RemoteSessionPlayer.kt:108 — app/src/main/java/com/aurora/music/playback/network/RemoteSessionPlayer.kt:108-112 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/RemotePlayerController.kt:95-99 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/network/RemoteSessionPlayer.kt:108` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:38 — app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:38-42 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/ConnectPlatform.kt:60-64 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:38` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/components/FeedShelves.kt:108 — app/src/main/java/com/aurora/music/ui/components/FeedShelves.kt:108-112 | desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:492-497 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/FeedShelves.kt:108` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:158 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:158-162 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:157-161 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:158` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:197 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:197-201 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:165-169 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:197` 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 (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:156 — app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:156-160 | desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:171-176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:156` 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 (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:132 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:132-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:109-113 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:436 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:436-440 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:273-277 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:198 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:198-202 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:197-201 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:198` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:339 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:339-343 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:288-292 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:339` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:658 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:658-662 | app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:671-675 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:658` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:209 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:209-213 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:171-175 — 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 (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:240 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:240-244 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:160-165 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:240` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:96 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:96-101 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:88-92 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:308 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:308-312 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:326-330 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:308` 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 (5 lines × 2) core/src/main/kotlin/com/aurora/music/playback/engine/AdvancedRackKernels.kt:50 — core/src/main/kotlin/com/aurora/music/playback/engine/AdvancedRackKernels.kt:50-54 | core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:40-45 — 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 `core/src/main/kotlin/com/aurora/music/playback/engine/AdvancedRackKernels.kt:50` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:595 — desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:595-599 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:608-612 — 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 `desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:595` 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 matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1380 — desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1380-1384 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1549-1553 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1380` 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) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:610 — desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:610-614 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileScreen.kt:144-148 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:610` 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 (5 lines × 2) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:48 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:48-52 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:49-53 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/navigation/NavMenu.kt:59 — app/src/main/java/com/aurora/music/navigation/NavMenu.kt:59-63 | desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt:45-49 — 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 (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:213 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:213-217 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:170-174 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:80 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:80-84 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:82-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 60 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×82
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:223 — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:223-228 | desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt:203-208 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:223` 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 (6 lines × 2) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:149 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:149-154 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:154-159 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:149` 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 (6 lines × 2) app/src/main/java/com/aurora/music/playback/network/NetworkQueuePlayer.kt:294 — app/src/main/java/com/aurora/music/playback/network/NetworkQueuePlayer.kt:294-299 | app/src/main/java/com/aurora/music/playback/network/RemoteSessionPlayer.kt:63-68 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/network/NetworkQueuePlayer.kt:294` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:644 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:644-649 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:665-670 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:644` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1398 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1398-1403 | app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1591-1596 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1398` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:180 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:180-185 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:297-303 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/ListItems.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:180` 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/com/aurora/music/ui/components/TrackSortMenu.kt:46 — app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:46-51 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt:48-53 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:46` 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 first that the copies are not typed on the same thing: `FilterAlt` names `androidx.compose.material.icons.filled.FilterAlt` in one and `androidx.compose.material.icons.outlined.FilterAlt` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:193 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:193-198 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:213-218 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:193` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:345 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:345-350 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:208-213 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:345` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:613 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:613-618 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:384-389 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:613` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:675 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:675-680 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:514-519 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:675` 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, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:521` calls `CommentTrack` and `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:682` 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/com/aurora/music/ui/screens/player/PlayerScreen.kt:1545 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1545-1550 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/TrackComments.kt:126-132 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1545` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:226 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:226-231 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:188-193 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:226` 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/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:39 — app/src/main/java/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:39-44 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:37-42 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:39` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:60 — app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:60-65 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/BackupScreen.kt:53-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:60` 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/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:245 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:245-250 | app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:292-297 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:245` 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/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:77 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:77-82 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:75-80 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:269 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:269-274 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:228-233 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:275` calls `SettingsRowDivider`, `SettingsDestinationRow` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:234` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:233 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:233-238 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:233-238 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:233` 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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:162 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:162-167 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:177-182 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:162` 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: `YouTubeDownloader` names `com.aurora.music.data.YouTubeDownloader` in one and `com.aurora.music.desktop.youtube.YouTubeDownloader` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) app/src/main/java/com/aurora/music/util/DominantColor.kt:77 — app/src/main/java/com/aurora/music/util/DominantColor.kt:77-82 | desktop/src/main/kotlin/com/aurora/music/util/DominantColor.kt:202-207 — 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 (6 lines × 2) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:75 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:75-80 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:68-73 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:75` 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 (6 lines × 2) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:224 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:224-229 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:486-491 — 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. 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/com/aurora/music/playback/YoutubeResolver.kt:142 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:142-147 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:147-152 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The `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 (6 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:654 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:654-659 | app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1819-1824 — 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.
  • + 57 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×75
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:651 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:651-657 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:672-678 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:651` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:104 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:104-110 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:147-153 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/ListItems.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:131 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:131-137 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:272-278 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/ListItems.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:131` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351-357 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:678-684 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351` 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 (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:483 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:483-489 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:502-508 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:483` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:210 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:210-216 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:257-263 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:210` 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, `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:264` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:217` 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 (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:517 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:517-523 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:332-338 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:517` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:997 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:997-1003 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:771-777 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:997` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1060 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1060-1066 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:831-837 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1060` 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 (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:234 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:234-240 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:196-202 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:234` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:82 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:82-88 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:106-112 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:250 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:250-256 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:234-240 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:250` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:417 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:417-423 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:381-387 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:417` 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 (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:411 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:411-417 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:302-308 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:411` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:36 — app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:36-42 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:35-41 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:36` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:105 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:105-111 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:104-110 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:105` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:127 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:127-133 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:102-108 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:127` 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 (7 lines × 2) app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:44 — app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:44-50 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:41-47 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt` as WHOLE FILES: 82% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:98 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:98-104 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:101-107 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:215 — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:215-221 | desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt:195-201 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:215` 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 first that the copies are not typed on the same thing: the declarations holding them bind `file` to `File = apkFile` in one and `File` 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 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:259 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:259-265 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:339-345 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:259` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:129 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:129-135 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:163-169 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:914 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:914-920 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1013-1019 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:914` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1351 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1351-1357 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:869-875 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1351` 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, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:868` calls `key` and `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1350` 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 (7 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:447 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:447-453 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:411-417 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:447` 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.
  • + 50 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×64
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:166 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:166-173 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:216-223 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/DiscordRpc.kt` and `desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/DiscordRpc.kt:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1484 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1484-1491 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1462-1469 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1484` 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 (8 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1986 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1986-1993 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1812-1819 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1986` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:343 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:343-350 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:459-466 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/ListItems.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:343` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:224 — app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:224-231 | desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:395-402 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:224` 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 × 2) app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75 — app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75-82 | app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:168-175 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75` 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 (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:176 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:176-183 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:194-201 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:176` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:439 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:439-446 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:419-426 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `Album` names `androidx.compose.material.icons.filled.Album` in one and `androidx.compose.material.icons.outlined.Album` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:96 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:96-103 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:90-97 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:98` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:104` 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 (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:181 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:181-188 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:182-189 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:52 — app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:52-59 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:60-67 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:52` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:237 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:237-244 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:290-297 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:237` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:64 — app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:64-72 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:74-81 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.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. 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 (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:92 — app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:92-99 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/BackupScreen.kt:86-93 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:92` 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 × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:220 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:220-227 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:219-226 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:220` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:150 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:150-157 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:150-157 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:150` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:158` calls `rememberLazyListState` and `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:158` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:89 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:89-96 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:72-79 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.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/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:83 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:83-90 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:83-90 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:83` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91` 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 (8 lines × 2) app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:316 — app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:316-323 | desktop/src/main/kotlin/com/aurora/music/viewmodel/AuthViewModel.kt:159-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:316` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/viewmodel/FolderViewModel.kt:29 — app/src/main/java/com/aurora/music/viewmodel/FolderViewModel.kt:29-36 | desktop/src/main/kotlin/com/aurora/music/viewmodel/FolderViewModel.kt:25-32 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1060 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1060-1067 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:917-924 — 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) core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:65 — core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:65-72 | core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:78-85 — 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 `core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.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. 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/com/aurora/music/mix/MixAnalyzer.kt:43 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:43-50 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:57-64 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:139 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:139-146 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:103-110 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:301 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:301-308 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:285-292 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:301` 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.
  • + 39 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×57
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/data/SonicEngine.kt:186 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:186-196 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:160-170 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:109 — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:109-119 | desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt:101-111 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:109` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/playback/ConvolutionProcessor.kt:161 — app/src/main/java/com/aurora/music/playback/ConvolutionProcessor.kt:161-171 | core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:341-351 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:173 — app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:173-183 | desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:263-273 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `icon` to `androidx.compose.ui.graphics.vector.ImageVector` in one and `ImageVector` 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 (11 lines × 2) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:153 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:153-163 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:151-161 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:153` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:174 — app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:174-184 | desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:189-200 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:174` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:69 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:69-79 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:70-80 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:458 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:458-468 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:287-297 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:458` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:510 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:510-520 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:387-397 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:398` calls `then`, `boundsInWindow` and `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:521` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:127 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:127-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:170-180 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:127` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:310 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:310-320 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:272-282 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:310` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:238 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:238-248 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:307-317 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:283 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:283-293 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:241-251 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:283` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:240` calls `SettingsDestinationRow` and `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:282` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/theme/Theme.kt:120 — app/src/main/java/com/aurora/music/ui/theme/Theme.kt:120-130 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Theme.kt:167-177 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/Theme.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/Theme.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/theme/Theme.kt:120` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:85 — app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:85-95 | desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt:83-93 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1316 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1316-1326 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1281-1291 — 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 (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:593 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:593-603 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:684-694 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:593` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:104 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:104-114 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:99-109 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:98` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:103` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:341 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:341-351 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:277-287 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:341` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:38 — app/src/main/java/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:38-48 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:47-57 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:38` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:212 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:212-222 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:191-201 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:212` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:29 — app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:29-39 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:26-36 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt` as WHOLE FILES: 82% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:159 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:159-169 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:111-121 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:208 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:208-218 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:206-216 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:208` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:217` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:219` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:90 — app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:90-100 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:101-111 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:90` 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.
  • + 32 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×56
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:82 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:82-90 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:85-93 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/DiscordRpc.kt` and `desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/DiscordRpc.kt:82` 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 (9 lines × 2) app/src/main/java/com/aurora/music/data/TagEditor.kt:62 — app/src/main/java/com/aurora/music/data/TagEditor.kt:62-70 | desktop/src/main/kotlin/com/aurora/music/desktop/library/TagEditor.kt:52-60 — 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/com/aurora/music/playback/compare/ComparisonRenderer.kt:35 — app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:35-43 | desktop/src/main/kotlin/com/aurora/music/desktop/audio/compare/DesktopComparison.kt:42-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:35` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:45` calls `OptIn` and `desktop/src/main/kotlin/com/aurora/music/desktop/audio/compare/DesktopComparison.kt:52` 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/com/aurora/music/playback/dsd/DsdExtractor.kt:325 — app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:325-333 | app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:393-401 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:38 — app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:38-46 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/DesktopConnect.kt:26-34 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:427 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:427-435 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:487-495 — 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/com/aurora/music/ui/AuroraApp.kt:505 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:505-513 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:512-520 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:505` 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. 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 `item` to `com.aurora.music.navigation.NavMenuItem` in one and `NavMenuItem` 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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1620 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1620-1628 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1189-1197 — 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/com/aurora/music/ui/AuroraApp.kt:1762 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1762-1770 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1660-1668 — 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/com/aurora/music/ui/components/Sidebar.kt:76 — app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:76-84 | app/src/main/java/com/aurora/music/ui/screens/profile/ProfileScreen.kt:93-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:76` 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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:674 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:674-682 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1030-1038 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:674` 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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:764 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:764-772 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:876-884 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:36 — app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:36-44 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:43-51 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:150 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:150-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:114-122 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:150` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:123` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:159` 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/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:167 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:167-175 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:155-163 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:430 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:430-438 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:394-402 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:430` 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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:83 — app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:83-91 | desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt:83-91 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:138 — app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:138-146 | desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:105-113 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:188 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:188-196 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:158-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:188` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:160 — core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:160-168 | core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:170-178 — 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) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:96 — desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:96-104 | desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:138-146 — 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 `desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:250 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:250-258 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:251-259 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:314 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:314-322 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:238-246 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:314` 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 (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:425 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:425-433 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:405-413 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:224 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:224-232 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:250-258 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:224` 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.
  • + 31 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×50
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/components/Common.kt:136 — app/src/main/java/com/aurora/music/ui/components/Common.kt:136-145 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:243-252 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Common.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/components/RepostMenuItem.kt:31 — app/src/main/java/com/aurora/music/ui/components/RepostMenuItem.kt:31-40 | desktop/src/main/kotlin/com/aurora/music/ui/components/RepostMenuItem.kt:31-40 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/RepostMenuItem.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/RepostMenuItem.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:612 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:612-621 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:704-713 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:612` 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/com/aurora/music/ui/screens/library/LibraryScreen.kt:793 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:793-802 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:907-916 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:793` 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/com/aurora/music/ui/screens/player/ConnectSheet.kt:143 — app/src/main/java/com/aurora/music/ui/screens/player/ConnectSheet.kt:143-152 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:133-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/ConnectSheet.kt:143` 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 first that the copies are not typed on the same thing: the declarations holding them bind `key` to `String? = null` 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 (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:174 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:174-183 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:124-133 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:174` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:172` calls `LaunchedEffect`, `onLockChange` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:122` 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/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:205 — app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:205-214 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:194-203 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.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 (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:105 — app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:105-114 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/BackupScreen.kt:99-108 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:105` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:44 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:44-53 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:35-44 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `model` to `ComparisonViewModel = viewModel()` in one and `ComparisonViewModel` 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/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:177 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:177-186 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:165-174 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:318 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:318-327 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:306-315 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:318` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329-338 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:317-326 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:200 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:200-209 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:203-212 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:200` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:213` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:210` 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 (10 lines × 2) app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:59 — app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:59-68 | desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt:59-68 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:487 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:487-496 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:479-488 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt:49 — app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt:49-58 | desktop/src/main/kotlin/com/aurora/music/viewmodel/PodcastViewModel.kt:47-56 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/PodcastViewModel.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:52 — app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:52-61 | desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt:50-59 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1939 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1939-1948 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1728-1737 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1939` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:341 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:341-350 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:372-381 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:341` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:382` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:351` 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 (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:403 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:403-412 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:435-444 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:403` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:445` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:413` 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 (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:171 — app/src/main/java/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:171-180 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConnectSettingsScreen.kt:130-139 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:195 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:195-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:232-241 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:195` 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/com/aurora/music/ui/screens/player/PlayerSheets.kt:215 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:215-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:177-186 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:215` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:373 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:373-382 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:552-561 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:912 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:912-921 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:909-918 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:912` 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.
  • + 25 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×41
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/data/TagEditor.kt:35 — app/src/main/java/com/aurora/music/data/TagEditor.kt:35-46 | desktop/src/main/kotlin/com/aurora/music/desktop/library/TagEditor.kt:28-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. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/TagEditor.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/com/aurora/music/data/remote/PodcastClient.kt:35 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:35-46 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:36-47 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1604 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1604-1615 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1563-1574 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1604` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:421 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:421-432 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:442-453 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:421` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:66 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:66-77 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:68-79 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:734 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:734-745 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:567-578 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:734` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:246 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:246-257 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:167-178 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:246` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:168 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:168-179 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:167-178 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:320 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:320-331 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:291-302 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:320` 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/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:193 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:193-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:191-202 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:193` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:236 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:236-247 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:277-288 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:236` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:33 — app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt:33-44 | desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt:33-44 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/PaperButtons.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperButtons.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:149 — app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:149-160 | desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:116-127 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1254 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1254-1265 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1226-1237 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1254` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:186 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:186-197 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:174-185 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:186` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:47 — app/src/main/java/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:47-58 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:53-64 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:47` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1231 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1231-1242 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1154-1165 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1231` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1166` calls `load` and `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1243` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:149 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:149-160 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:164-175 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:149` 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 first that the copies are not typed on the same thing: `YouTubeDownloader` names `com.aurora.music.data.YouTubeDownloader` in one and `com.aurora.music.desktop.youtube.YouTubeDownloader` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:586 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:586-597 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:491-502 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:290 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:290-301 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:299-310 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:290` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:72 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:72-83 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:68-79 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:60 — app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:60-71 | desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt:57-68 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:60` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt:69` calls `withHistory` and `app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:73` 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/com/aurora/music/ui/screens/library/LibraryScreen.kt:748 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:748-759 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:849-860 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:748` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1553 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1553-1564 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/TrackComments.kt:135-146 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1553` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:190 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:190-201 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:174-185 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:190` 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.
  • + 16 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×34
  • MethodTooLong: AuroraAppKt.Shell desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:264 — MethodTooLong — Shell runs 1216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1116 over it, 12.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PlaybackAudioOutput.reportLocal app/src/main/java/com/aurora/music/playback/PlaybackAudioOutput.kt:399 — MethodTooLong — reportLocal runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64× 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: SourcesSettingsScreenKt.SourcesSettingsScreen app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:83 — MethodTooLong — SourcesSettingsScreen 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: TuningProjectsScreenKt.TuningProjectsScreen app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45 — MethodTooLong — TuningProjectsScreen runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12× 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: TuningProjectsScreenKt.TuningProjectsScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:42 — MethodTooLong — TuningProjectsScreen runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12× 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: ConcertAcoustics.room core/src/main/kotlin/com/aurora/music/playback/engine/ConcertAcoustics.kt:64 — MethodTooLong — room runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.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.
  • MethodTooLong: MixScreenKt.MixScreen app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MethodTooLong — MixScreen runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86× 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: MixScreenKt.MixScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MethodTooLong — MixScreen runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86× 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: AppearanceScreenKt.AppearanceScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:78 — MethodTooLong — AppearanceScreen runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× 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: AppearanceScreenKt.AppearanceScreen app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:76 — MethodTooLong — AppearanceScreen runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47× 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: EqualizerScreenKt.AutoEqPanel app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:341 — MethodTooLong — AutoEqPanel runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43× 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: ConvolutionLibraryScreenKt.ConvolutionLibraryScreen app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:46 — MethodTooLong — ConvolutionLibraryScreen runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.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: ReverbKernel.process core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:147 — MethodTooLong — process runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× 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: EqualizerScreenKt.AutoEqPanel desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329 — MethodTooLong — AutoEqPanel 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: StorageSettingsScreenKt.StorageSettingsScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:66 — MethodTooLong — StorageSettingsScreen 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: SourcesSettingsScreenKt.SourcesSettingsScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:80 — MethodTooLong — SourcesSettingsScreen runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20× 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: TrackPlaylistsSheetKt.TrackPlaylistsSheet app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:45 — MethodTooLong — TrackPlaylistsSheet 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: StorageSettingsScreenKt.StorageSettingsScreen app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:77 — MethodTooLong — StorageSettingsScreen 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: LyricsScreenKt.LyricsScreen app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:79 — MethodTooLong — LyricsScreen runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× 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: LyricsScreenKt.ImmersiveLyrics app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:414 — MethodTooLong — ImmersiveLyrics runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× 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: ConvolutionLibraryScreenKt.ConvolutionLibraryScreen desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:50 — MethodTooLong — ConvolutionLibraryScreen runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17× 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: TrackPlaylistsSheetKt.TrackPlaylistsSheet desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:48 — MethodTooLong — TrackPlaylistsSheet runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: NetworkCompressedDecoder.decode app/src/main/java/com/aurora/music/playback/network/audio/NetworkCompressedDecoder.kt:29 — MethodTooLong — decode runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× 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: QueueScreenKt.QueueContent desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:91 — MethodTooLong — QueueContent runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13× 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: WaveformKt.Waveform app/src/main/java/com/aurora/music/ui/components/Waveform.kt:42 — MethodTooLong — Waveform runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12× 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.
  • + 9 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×34
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/data/SonicEngine.kt:129 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:129-142 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:103-116 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/SonicEngine.kt:129` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:92 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:92-105 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:89-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/StemSeparator.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/mix/StemSeparator.kt:92` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1267 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1267-1280 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1239-1252 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1267` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:235 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:235-248 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:237-250 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:235` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:434 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:434-447 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:455-468 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:434` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:86 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:86-99 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:70-83 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:81 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:81-94 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:82-95 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:385 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:385-398 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:343-356 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:385` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:150 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:150-163 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:262-275 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:150` 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 first that the copies are not typed on the same thing: `Album` names `androidx.compose.material.icons.outlined.Album` in one and `com.aurora.music.model.Album` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:117 — app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:117-130 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:123-136 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:117` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:137` calls `SettingsRowDivider` and `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:131` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:80 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:80-93 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:87-100 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:80` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:79` calls `hide` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:86` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1074 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1074-1087 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:931-944 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1074` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt:63 — app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt:63-76 | desktop/src/main/kotlin/com/aurora/music/viewmodel/PodcastViewModel.kt:61-74 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/PodcastViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/PodcastViewModel.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:289 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:289-302 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:355-368 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:289` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:369` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:303` 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 (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:291 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:291-304 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:288-301 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:291` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:89 — app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:89-102 | desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:82-95 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:88` calls `i` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:81` 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 (14 lines × 2) app/src/main/java/com/aurora/music/data/SonicEngine.kt:69 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:69-82 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:54-67 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/SonicEngine.kt:69` 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 (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:484 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:484-497 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:313-326 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:483` calls `rememberUpdatedState` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:312` 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 (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1598 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1598-1611 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/TrackComments.kt:180-193 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1598` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:123 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:123-136 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:178-191 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/DiscordRpc.kt` and `desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:211 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:211-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:225-238 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:211` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:218 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:218-231 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:208-221 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:218` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:497 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:497-510 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:516-529 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:497` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:189 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:189-202 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:178-191 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:189` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:143 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:143-156 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:143-156 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • + 9 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×34
  • Swallowed exception (caught, then discarded) desktop/src/main/kotlin/com/aurora/music/viewmodel/AiPlaylistViewModel.kt:79 — `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) desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.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.
  • Swallowed exception (caught, then discarded) desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:166 — `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) desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:169 — `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) desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:160 — `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) desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1842 — `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) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:355 — `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) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:88 — `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) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:80 — `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:73 — `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) desktop/src/main/kotlin/com/aurora/music/ui/components/RepostMenuItem.kt:29 — `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) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:69 — `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) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:127 — `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) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:148 — `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) desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.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) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:1048 — `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) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:725 — `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) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:816 — `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) desktop/src/main/kotlin/com/aurora/music/data/DiscordIpc.kt:112 — `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) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbStreamingThread.kt:88 — `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) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDevice.kt:95 — `catch (_: RuntimeException)` 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) core/src/main/kotlin/com/aurora/music/playback/network/BoundedHttpServer.kt:75 — `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) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererClient.kt:80 — `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) core/src/main/kotlin/com/aurora/music/data/LikeLedger.kt:250 — `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) core/src/main/kotlin/com/aurora/music/data/MusicRepository.kt:500 — `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.
  • + 9 more in this group — see findings.md.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×27
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:252 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:252-255 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:252-255 — 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.
  • Edited copy of a member (4 corresponding lines) core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:181 — core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:181-184 | core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:192-195 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/LocalProfileViewModel.kt:39 — app/src/main/java/com/aurora/music/viewmodel/LocalProfileViewModel.kt:39-42 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LocalProfileViewModel.kt:39-42 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:592 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:592-595 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:586-589 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:269 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:269-272 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:260-263 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:158 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:158-161 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:158-161 — 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.
  • Edited copy of a member (4 corresponding lines) core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:319 — core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:319-322 | core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:324-327 — 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.
  • Edited copy of a member (4 corresponding lines) core/src/main/kotlin/com/aurora/music/data/QueueStore.kt:113 — core/src/main/kotlin/com/aurora/music/data/QueueStore.kt:113-116 | core/src/main/kotlin/com/aurora/music/data/ResumePoints.kt:55-58 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:208 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:208-211 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:165-168 — 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.
  • Edited copy of a member (4 corresponding lines) core/src/main/kotlin/com/aurora/music/data/SettingsPreferenceCodec.kt:19 — core/src/main/kotlin/com/aurora/music/data/SettingsPreferenceCodec.kt:19-22 | desktop/src/main/kotlin/com/aurora/music/desktop/platform/DesktopSettings.kt:104-107 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:46 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:46-49 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:43-46 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:51 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:51-54 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:48-51 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/navigation/NavMenu.kt:99 — app/src/main/java/com/aurora/music/navigation/NavMenu.kt:99-102 | desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt:74-77 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:377 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:377-380 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:247-250 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:249 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:249-252 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:329-332 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:294 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:294-297 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:286-289 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:529 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:529-532 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:556-559 — 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.
  • Edited copy of a member (4 corresponding lines) core/src/main/kotlin/com/aurora/music/data/tuning/MeasurementTextImporter.kt:21 — core/src/main/kotlin/com/aurora/music/data/tuning/MeasurementTextImporter.kt:21-24 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningCurveAdapters.kt:9-13 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:272 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:272-276 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:266-269 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/data/SonicEngine.kt:180 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:180-183 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:154-157 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:158 — app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:158-161 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/DesktopConnect.kt:158-162 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:173 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:173-176 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:138-141 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:237 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:237-240 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:227-230 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/data/SonicStore.kt:54 — app/src/main/java/com/aurora/music/data/SonicStore.kt:54-57 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:38-41 — 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.
  • Edited copy of a member (4 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1246 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1246-1251 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:1061-1064 — 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.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Edited copy of a member (1 corresponding lines) · ×27
  • Edited copy of a member (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:522 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:522-522 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:519-519 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:325 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:325-325 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:309-309 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:511 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:511-511 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:508-508 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:298 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:298-298 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:289-289 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:183 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:183-183 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:182-182 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:600 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:600-600 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:600-600 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:136 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:136-136 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:137-137 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:206 — core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:206-206 | core/src/main/kotlin/com/aurora/music/data/YouTubeMusicBackend.kt:88-88 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:180 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:180-180 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:159-159 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:491 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:491-491 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:518-518 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:87 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:87-87 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:80-80 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:88 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:88-88 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:81-81 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:89 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:89-89 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:82-82 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/data/StorageInventory.kt:15 — app/src/main/java/com/aurora/music/data/StorageInventory.kt:15-15 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:13-13 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:599 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:599-599 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:593-593 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:447 — core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:447-448 | core/src/main/kotlin/com/aurora/music/data/PlaylistImport.kt:177-177 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:37 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:37-37 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:37-37 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:597 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:597-597 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:591-591 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/data/AiDjVoice.kt:47 — app/src/main/java/com/aurora/music/data/AiDjVoice.kt:47-47 | desktop/src/main/kotlin/com/aurora/music/desktop/platform/DesktopDjVoice.kt:30-30 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/data/LocalLibrary.kt:193 — app/src/main/java/com/aurora/music/data/LocalLibrary.kt:193-194 | desktop/src/main/kotlin/com/aurora/music/desktop/library/FolderLibrary.kt:132-132 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/data/SonicStore.kt:24 — app/src/main/java/com/aurora/music/data/SonicStore.kt:24-24 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:24-24 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:104 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:104-104 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:97-97 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:158 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:158-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:159-159 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/Shape.kt:18 — app/src/main/java/com/aurora/music/ui/theme/Shape.kt:18-18 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Shape.kt:19-19 — These two members are one piece of code written twice and then edited apart: 1 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 (1 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:299 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:299-299 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:290-290 — These two members are one piece of code written twice and then edited apart: 1 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.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×27
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/localization/EngineLabels.kt:48 — app/src/main/java/com/aurora/music/localization/EngineLabels.kt:48-62 | desktop/src/main/kotlin/com/aurora/music/localization/EngineLabels.kt:49-63 — before extracting anything, compare `app/src/main/java/com/aurora/music/localization/EngineLabels.kt` and `desktop/src/main/kotlin/com/aurora/music/localization/EngineLabels.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/localization/MediaLabels.kt:7 — app/src/main/java/com/aurora/music/localization/MediaLabels.kt:7-21 | desktop/src/main/kotlin/com/aurora/music/localization/MediaLabels.kt:6-20 — before extracting anything, compare `app/src/main/java/com/aurora/music/localization/MediaLabels.kt` and `desktop/src/main/kotlin/com/aurora/music/localization/MediaLabels.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:381 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:381-395 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:402-416 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:381` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1005 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1005-1019 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1043-1057 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1005` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1004` calls `Spacer`, `height` and `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1042` 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 (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:77 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:77-91 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:72-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:77` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:100 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:100-114 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:100-114 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:100` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:413 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:413-427 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:446-460 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:413` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:445` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:412` 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/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:169 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:169-183 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:143-157 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:169` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) desktop/src/main/kotlin/com/aurora/music/desktop/natives/AlsaOutput.kt:47 — desktop/src/main/kotlin/com/aurora/music/desktop/natives/AlsaOutput.kt:47-61 | desktop/src/main/kotlin/com/aurora/music/desktop/natives/WasapiOutput.kt:54-68 — 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 `desktop/src/main/kotlin/com/aurora/music/desktop/natives/AlsaOutput.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. 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 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:111 — app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:111-125 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:91-105 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:111` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:49 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:49-63 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:49-63 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:42 — app/src/main/java/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:42-56 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:34-48 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:42` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:49` calls `available` and `app/src/main/java/com/aurora/music/ui/screens/settings/AdvancedAudioSettingsScreen.kt:57` 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/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:99 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:99-113 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:112-126 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:992 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:992-1006 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:989-1003 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:521 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:521-535 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:521-535 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:155 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:155-169 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:149-163 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:155` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:478 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:478-492 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:441-455 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:478` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:131 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:131-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:358-372 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:131` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:237 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:237-251 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:237-251 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:123 — app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:123-137 | desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:121-135 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:123` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:138` calls `TextButton`, `choose`, `padding` and `desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:136` 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 (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:98 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:98-112 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:84-98 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:98` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:152 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:152-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:143-157 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:152` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:280 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:280-294 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:271-285 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:280` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:102 — app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:102-116 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:113-127 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:102` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:78 — app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:78-92 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:62-76 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt` as WHOLE FILES: 86% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.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.
  • + 2 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×26
  • TooManyMethods: DesktopPlaybackEngine desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:53 — TooManyMethods — 107 methods. The bar is 30 methods; this is 77 over it, 3.57× 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: MusicRepository core/src/main/kotlin/com/aurora/music/data/MusicRepository.kt:103 — TooManyMethods — 103 methods. The bar is 30 methods; this is 73 over it, 3.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: PlayerViewModel app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:112 — TooManyMethods — 89 methods. The bar is 30 methods; this is 59 over it, 2.97× 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: DesktopPlayer desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:125 — TooManyMethods — 82 methods. The bar is 30 methods; this is 52 over it, 2.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: MergedBackend core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:27 — TooManyMethods — 75 methods. The bar is 30 methods; this is 45 over it, 2.50× the bar. Most of these members implement data.MediaBackend (65 of 72 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: SoundCloudBackend core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:26 — TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× 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: SpotifyWebBackend core/src/main/kotlin/com/aurora/music/data/SpotifyWebBackend.kt:36 — TooManyMethods — 50 methods. The bar is 30 methods; this is 20 over it, 1.67× 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: PlexBackend core/src/main/kotlin/com/aurora/music/data/PlexBackend.kt:20 — TooManyMethods — 47 methods. The bar is 30 methods; this is 17 over it, 1.57× the bar. Most of these members implement data.MediaBackend (32 of 46 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: AppleMusicBackend core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:26 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. Most of these members implement data.MediaBackend (31 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: YouTubeMusicBackend core/src/main/kotlin/com/aurora/music/data/YouTubeMusicBackend.kt:16 — TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× the bar. Most of these members implement data.MediaBackend (34 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: DspSettingsStore core/src/main/kotlin/com/aurora/music/data/settings/DspSettings.kt:76 — TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× the bar. Most of these members implement settings.DspSettings (42 of 43 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: SpotifyBackend core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:39 — TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: JellyfinBackend core/src/main/kotlin/com/aurora/music/data/JellyfinBackend.kt:22 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× the bar. Most of these members implement data.MediaBackend (32 of 40 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: RemotePlayerController desktop/src/main/kotlin/com/aurora/music/desktop/connect/RemotePlayerController.kt:34 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× the bar. Most of these members implement player.PlayerController (33 of 39 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: AppContainer app/src/main/java/com/aurora/music/data/AppContainer.kt:37 — 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: PlaybackService app/src/main/java/com/aurora/music/playback/PlaybackService.kt:49 — 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: LocalBackend core/src/main/kotlin/com/aurora/music/data/LocalBackend.kt:12 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. Most of these members implement data.MediaBackend (33 of 38 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: SubsonicBackend core/src/main/kotlin/com/aurora/music/data/SubsonicBackend.kt:32 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. Most of these members implement data.MediaBackend (30 of 37 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: UsbAudioSink decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:29 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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: AppearanceSettingsStore core/src/main/kotlin/com/aurora/music/data/settings/AppearanceSettings.kt:55 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. Most of these members implement settings.AppearanceSettings (33 of 35 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: MixViewModel app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:34 — 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: PlaybackSettingsStore core/src/main/kotlin/com/aurora/music/data/settings/PlaybackSettings.kt:56 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. Most of these members implement settings.PlaybackSettings (32 of 33 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: MixViewModel desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:28 — 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: DownloadManager core/src/main/kotlin/com/aurora/music/data/DownloadManager.kt:93 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.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: LocalLibrary app/src/main/java/com/aurora/music/data/LocalLibrary.kt:41 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× 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.
  • + 1 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×24
  • FileTooLong: ui/AuroraApp.kt app/src/main/java/com/aurora/music/ui/AuroraApp.kt — FileTooLong — 1698 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: val (148-1964). The bar is 500 significant lines; this is 1198 over it, 3.40× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ui/AuroraApp.kt desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt — FileTooLong — 1521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1021 over it, 3.04× 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: player/PlayerScreen.kt app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt — FileTooLong — 1282 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 782 over it, 2.56× 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: library/LibraryScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt — FileTooLong — 1125 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 625 over it, 2.25× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: viewmodel/PlayerViewModel.kt app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt — FileTooLong — 1108 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: PlayerViewModel (112-1481). The bar is 500 significant lines; this is 608 over it, 2.22× 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: audio/DesktopPlaybackEngine.kt desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt — FileTooLong — 1069 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DesktopPlaybackEngine (53-1382). The bar is 500 significant lines; this is 569 over it, 2.14× 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: player/PlayerScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt — FileTooLong — 890 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 390 over it, 1.78× 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: visualizer/VisualizerRenderers.kt app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt — FileTooLong — 870 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 370 over it, 1.74× 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: visualizer/VisualizerRenderers.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt — FileTooLong — 870 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 370 over it, 1.74× 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: player/DesktopPlayer.kt desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt — FileTooLong — 866 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: DesktopPlayer (125-1162). The bar is 500 significant lines; this is 366 over it, 1.73× 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: library/LibraryScreen.kt app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt — FileTooLong — 850 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 350 over it, 1.70× 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: playback/PlaybackService.kt app/src/main/java/com/aurora/music/playback/PlaybackService.kt — FileTooLong — 837 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PlaybackService (49-1050). The bar is 500 significant lines; this is 337 over it, 1.67× 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: media3/UsbAudioSink.kt decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt — FileTooLong — 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: UsbAudioSink (29-1064). The bar is 500 significant lines; this is 204 over it, 1.41× 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: playback/PlaybackAudioOutput.kt app/src/main/java/com/aurora/music/playback/PlaybackAudioOutput.kt — FileTooLong — 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: PlaybackAudioOutput (38-741). The bar is 500 significant lines; this is 123 over it, 1.25× 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: detail/DetailScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt — FileTooLong — 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: SectionHeaderHeight (120-607). The bar is 500 significant lines; this is 113 over it, 1.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: settings/EqualizerScreen.kt app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt — FileTooLong — 604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 104 over it, 1.21× 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: whatsnew/WhatsNewTour.kt app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt — FileTooLong — 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11× 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: player/LyricsScreen.kt app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt — FileTooLong — 541 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 41 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: settings/ProcessingRackScreen.kt app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt — FileTooLong — 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.04× 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: data/SpotifyWebBackend.kt core/src/main/kotlin/com/aurora/music/data/SpotifyWebBackend.kt — FileTooLong — 521 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: SpotifyWebBackend (36-576). The bar is 500 significant lines; this is 21 over it, 1.04× 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: detail/DetailScreen.kt app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt — FileTooLong — 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04× 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: whatsnew/WhatsNewTour.kt desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt — FileTooLong — 517 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17 over it, 1.03× 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: data/MusicRepository.kt core/src/main/kotlin/com/aurora/music/data/MusicRepository.kt — FileTooLong — 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: MusicRepository (103-747). The bar is 500 significant lines; this is 13 over it, 1.03× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: settings/ProcessingRackScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt — FileTooLong — 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02× 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.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×23
  • Edited copy of a member (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:150 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:150-155 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:150-155 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:507 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:507-512 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:534-539 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:569 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:569-574 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:446-451 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1074 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1074-1079 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:845-850 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/data/SonicEngine.kt:248 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:248-253 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:222-227 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:81 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:81-86 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:74-79 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:250 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:250-255 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:291-296 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:542 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:542-547 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:562-567 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:148 — core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:148-154 | core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:232-237 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:228 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:228-233 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:228-233 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:24 — app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:24-35 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/ConnectPlatform.kt:52-57 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:139 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:139-144 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:140-145 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) core/src/main/kotlin/com/aurora/music/data/SpotifyWebBackend.kt:195 — core/src/main/kotlin/com/aurora/music/data/SpotifyWebBackend.kt:195-200 | core/src/main/kotlin/com/aurora/music/data/YouTubeMusicBackend.kt:90-95 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:299 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:299-304 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:299-304 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:391 — core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:391-396 | core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:381-389 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:662 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:662-667 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:567-572 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:67 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:67-73 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:62-67 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:251 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:251-256 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:320-325 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) core/src/main/kotlin/com/aurora/music/data/remote/JellyfinClient.kt:69 — core/src/main/kotlin/com/aurora/music/data/remote/JellyfinClient.kt:69-74 | REDACTED:90-96 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/data/AppContainer.kt:478 — app/src/main/java/com/aurora/music/data/AppContainer.kt:478-484 | desktop/src/main/kotlin/com/aurora/music/desktop/DesktopContainer.kt:386-391 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/LocalProfileViewModel.kt:30 — app/src/main/java/com/aurora/music/viewmodel/LocalProfileViewModel.kt:30-35 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LocalProfileViewModel.kt:30-35 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:140 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:140-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:194-199 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (6 corresponding lines) app/src/main/java/com/aurora/music/playback/GaplessAudioSink.kt:302 — app/src/main/java/com/aurora/music/playback/GaplessAudioSink.kt:302-307 | decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/PcmUtils.kt:41-47 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×22
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:483 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:483-491 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:480-488 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/data/SonicEngine.kt:50 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:50-58 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:44-52 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:117 — app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:117-129 | desktop/src/main/kotlin/com/aurora/music/data/AnimatedCovers.kt:78-86 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:550 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:550-558 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:392-400 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:42 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:42-50 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:56-64 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:150 — app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:150-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:166-174 — 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) core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:125 — core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:125-133 | core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:134-142 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:68 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:68-76 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:68-76 — 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) core/src/main/kotlin/com/aurora/music/data/DuplicateFinder.kt:22 — core/src/main/kotlin/com/aurora/music/data/DuplicateFinder.kt:22-30 | core/src/main/kotlin/com/aurora/music/data/merged/MergeMatcher.kt:116-126 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:912 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:912-920 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1011-1019 — 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) core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:390 — core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:390-398 | core/src/main/kotlin/com/aurora/music/data/MergedBackend.kt:408-416 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:162 — app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:162-170 | desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:129-137 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:250 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:250-261 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:225-233 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:241 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:241-249 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:240-248 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:180 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:180-188 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:181-189 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:138 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:138-146 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:102-110 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/FolderViewModel.kt:28 — app/src/main/java/com/aurora/music/viewmodel/FolderViewModel.kt:28-36 | desktop/src/main/kotlin/com/aurora/music/viewmodel/FolderViewModel.kt:24-32 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:115 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:115-123 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:168-176 — 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) core/src/main/kotlin/com/aurora/music/data/settings/RackLibrarySettings.kt:200 — core/src/main/kotlin/com/aurora/music/data/settings/RackLibrarySettings.kt:200-208 | core/src/main/kotlin/com/aurora/music/data/settings/RackLibrarySettings.kt:210-218 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:337 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:337-346 | app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:357-365 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/data/StorageInventory.kt:136 — app/src/main/java/com/aurora/music/data/StorageInventory.kt:136-145 | desktop/src/main/kotlin/com/aurora/music/data/StorageInventory.kt:118-126 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:44 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:44-52 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:32-40 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×21
  • Edited copy of a member (7 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:234 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:234-240 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:227-233 — 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/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:275 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:275-281 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:277-283 — 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/com/aurora/music/data/cache/AudioCache.kt:242 — app/src/main/java/com/aurora/music/data/cache/AudioCache.kt:242-248 | desktop/src/main/kotlin/com/aurora/music/desktop/audio/AudioCache.kt:359-365 — 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/com/aurora/music/viewmodel/MixViewModel.kt:273 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:273-279 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:264-270 — 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/com/aurora/music/ui/screens/player/ConcertControls.kt:224 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:224-230 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:225-231 — 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/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:58 — app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:58-72 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/ConnectPlatform.kt:77-83 — 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/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:118 — app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:118-124 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:129-135 — 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/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:199 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:199-205 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:156-162 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:829 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:829-835 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:826-832 — 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/com/aurora/music/data/SonicStore.kt:68 — app/src/main/java/com/aurora/music/data/SonicStore.kt:68-74 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:52-58 — 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/com/aurora/music/mix/StemSeparator.kt:57 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:57-63 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:54-60 — 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/com/aurora/music/ui/screens/explore/ExploreScreen.kt:195 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:195-201 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:163-169 — 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/com/aurora/music/viewmodel/PlayerViewModel.kt:905 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:905-913 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:852-858 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:821 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:821-827 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:818-824 — 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/com/aurora/music/data/SpotifyWebPlayer.kt:348 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:348-354 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:323-329 — 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/com/aurora/music/ui/screens/settings/SettingsComponents.kt:227 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:227-233 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:296-302 — 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/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:116 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:116-122 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:129-135 — 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) desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:529 — desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:529-535 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileScreen.kt:166-174 — 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/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:228 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:228-234 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:186-192 — 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/com/aurora/music/playback/PrecisionAudioSink.kt:423 — app/src/main/java/com/aurora/music/playback/PrecisionAudioSink.kt:423-429 | app/src/main/java/com/aurora/music/playback/usb/UsbGraphProcessor.kt:197-203 — 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/com/aurora/music/data/SpotifyWebPlayer.kt:320 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:320-327 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:294-300 — 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 (5 corresponding lines) · ×21
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:83 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:83-87 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:63-67 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/data/StorageInventory.kt:103 — app/src/main/java/com/aurora/music/data/StorageInventory.kt:103-107 | desktop/src/main/kotlin/com/aurora/music/data/StorageInventory.kt:87-91 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:338 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:338-342 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:339-343 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:190 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:190-194 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:241-245 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/data/SoundCloudWebWriter.kt:139 — app/src/main/java/com/aurora/music/data/SoundCloudWebWriter.kt:139-143 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SoundCloudWebWriter.kt:128-132 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/playback/engine/AdvancedRackKernels.kt:19 — core/src/main/kotlin/com/aurora/music/playback/engine/AdvancedRackKernels.kt:19-23 | desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/MixDeck.kt:114-118 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:231 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:231-235 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:230-234 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:664 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:664-668 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:664-668 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/GuestLikes.kt:31 — core/src/main/kotlin/com/aurora/music/data/GuestLikes.kt:31-35 | core/src/main/kotlin/com/aurora/music/data/SoundCloudPendingLikes.kt:18-22 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:287 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:287-291 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:279-283 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:51 — app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:51-58 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SearchViewModel.kt:49-53 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:399 — core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:399-403 | core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:262-266 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/settings/CollectionSettings.kt:52 — core/src/main/kotlin/com/aurora/music/data/settings/CollectionSettings.kt:52-56 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningTargetCatalog.kt:65-70 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:60 — app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:60-64 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SearchViewModel.kt:55-59 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/settings/AppearanceSettings.kt:166 — core/src/main/kotlin/com/aurora/music/data/settings/AppearanceSettings.kt:166-170 | core/src/main/kotlin/com/aurora/music/data/settings/CollectionSettings.kt:125-129 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:183 — app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:183-187 | desktop/src/main/kotlin/com/aurora/music/viewmodel/AuthViewModel.kt:110-117 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:279 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:279-284 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:272-276 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:83 — core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:83-90 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:108-112 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:114 — core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:114-118 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:144-148 — 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.
  • Edited copy of a member (5 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1431 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1431-1435 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:1122-1126 — 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.
  • Edited copy of a member (5 corresponding lines) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:380 — core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:380-384 | core/src/main/kotlin/com/aurora/music/data/ProcessingRack.kt:238-242 — 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 · Duplicated block (13 lines × 2) · ×21
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:81 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:81-93 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:84-96 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:470 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:470-482 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:300-312 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:470` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:483` calls `rememberUpdatedState` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:313` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:159 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:159-171 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:124-136 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:159` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:123` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:158` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:162 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:162-174 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:150-162 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:162` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:373 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:373-385 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:373-385 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:104 — app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:104-116 | desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:97-109 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:139 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:139-151 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:138-150 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:139` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:94 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:94-106 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:94-106 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/data/remote/AcoustIdClient.kt:72 — app/src/main/java/com/aurora/music/data/remote/AcoustIdClient.kt:72-84 | desktop/src/main/kotlin/com/aurora/music/data/remote/AcoustIdClient.kt:72-84 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/AcoustIdClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/AcoustIdClient.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:150 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:150-162 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:200-212 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/DiscordRpc.kt` and `desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/DiscordRpc.kt:150` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/data/SonicEngine.kt:155 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:155-167 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:129-141 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:287 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:287-299 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:274-286 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:287` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:963 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:963-975 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:960-972 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:469 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:469-481 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:468-480 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:469` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:76 — app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:76-88 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:89-101 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:76` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:710 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:710-722 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:728-740 — 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 (13 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/RelatedPane.kt:43 — app/src/main/java/com/aurora/music/ui/screens/player/RelatedPane.kt:43-55 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/RelatedPane.kt:36-48 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/RelatedPane.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 (13 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:500 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:500-512 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:492-504 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:166 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:166-178 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:238-250 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:166` 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 `startPadding` to `androidx.compose.ui.unit.Dp = 16.dp` in one and `Dp = 16.dp` 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 (13 lines × 2) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:111 — desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:111-123 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:141-153 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:111` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:172 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:172-184 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:177-189 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:172` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×20
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:165 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:165-183 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:163-181 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:165` 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/com/aurora/music/ui/screens/library/LibraryScreen.kt:868 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:868-886 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1047-1065 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:868` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1046` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:867` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1497 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1497-1515 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:1059-1077 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1497` 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/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:110 — app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:110-128 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:103-121 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:110` 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/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:72 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:72-90 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:72-90 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:71` calls `mutableStateOf` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:71` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:257 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:257-275 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:257-275 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:839 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:839-857 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:836-854 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:839` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:369 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:369-387 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:225-243 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:369` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:51 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:51-69 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:53-71 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:71` calls `mutableStateOf` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:72` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:143 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:143-161 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:148-166 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:143` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:133 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:133-151 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:133-151 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt:80 — app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt:80-98 | desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.kt:76-94 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.kt` as WHOLE FILES: 85% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:214 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:214-232 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:134-152 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.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 (19 lines × 2) app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:105 — app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:105-123 | desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt:113-131 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:53 — app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:53-71 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt:55-73 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:53` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:191 — app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:191-209 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:171-189 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:191` 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 (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:180 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:180-198 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:182-200 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:251 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:251-269 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:245-263 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:161 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:161-179 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:162-180 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (19 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:162 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:162-180 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:163-181 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×18
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:387 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:387-402 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:479-494 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:300 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:300-315 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:268-283 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:300` 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/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:166 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:166-181 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:169-184 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:166` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:152 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:152-167 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:153-168 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:152` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:177 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:177-192 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:165-180 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:177` 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 (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:733 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:733-748 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:576-591 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:258 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:258-273 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:260-275 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:927 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:927-942 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:924-939 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:139 — app/src/main/java/com/aurora/music/data/SonicFeatures.kt:139-154 | desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:139-154 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicFeatures.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:114 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:114-129 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:100-115 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:114` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:296 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:296-311 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:311-326 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:294` calls `collectAsStateWithLifecycle` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:309` 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 (16 lines × 2) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:352 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:352-367 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:468-483 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/ListItems.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:352` 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 (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:59 — app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:59-74 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:71-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:87` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:75` 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 (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:280 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:280-295 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:282-297 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:166 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:166-181 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:168-183 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:166` 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/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:209 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:209-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:208-223 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:209` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:47 — app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:47-62 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:121-136 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:100 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:100-115 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:119-134 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×17
  • Edited copy of a member (8 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1403 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1403-1410 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:935-942 — 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/com/aurora/music/ui/screens/player/ConcertControls.kt:147 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:147-154 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:148-155 — 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/com/aurora/music/playback/YoutubeResolver.kt:291 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:291-298 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:225-233 — 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/com/aurora/music/ui/screens/library/LibraryScreen.kt:902 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:902-909 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1078-1085 — 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/com/aurora/music/ui/screens/player/ConcertControls.kt:213 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:213-220 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:214-221 — 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/com/aurora/music/data/SpotifyWebPlayer.kt:295 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:295-302 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:270-277 — 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/com/aurora/music/ui/screens/stats/RecapInbox.kt:76 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapInbox.kt:76-83 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapInbox.kt:74-81 — 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/com/aurora/music/mix/StemSeparator.kt:217 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:217-224 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:222-229 — 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/com/aurora/music/ui/screens/settings/StorageRows.kt:41 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:41-48 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:43-50 — 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/com/aurora/music/viewmodel/LibraryViewModel.kt:157 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:157-165 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:123-130 — 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) core/src/main/kotlin/com/aurora/music/data/LocalStore.kt:79 — core/src/main/kotlin/com/aurora/music/data/LocalStore.kt:79-86 | core/src/main/kotlin/com/aurora/music/data/LocalStore.kt:88-95 — 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/com/aurora/music/ui/screens/stats/InsightsScreen.kt:281 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:281-288 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:281-288 — 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/com/aurora/music/ui/screens/settings/SettingsComponents.kt:192 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:192-199 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:260-267 — 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/com/aurora/music/data/SonicStore.kt:59 — app/src/main/java/com/aurora/music/data/SonicStore.kt:59-66 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:43-50 — 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) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:172 — desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:172-179 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:181-189 — 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/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:43 — app/src/main/java/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:43-50 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SmartPlaylistViewModel.kt:40-47 — 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/com/aurora/music/ui/layout/AdaptiveLayout.kt:30 — app/src/main/java/com/aurora/music/ui/layout/AdaptiveLayout.kt:30-37 | desktop/src/main/kotlin/com/aurora/music/ui/layout/AdaptiveLayout.kt:64-71 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×16
  • Edited copy of a member (11 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:170 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:170-180 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:172-182 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:760 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:760-770 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:760-770 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:638 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:638-648 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:638-648 — 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/com/aurora/music/viewmodel/MixViewModel.kt:253 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:253-265 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:246-256 — 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/com/aurora/music/playback/YoutubeResolver.kt:90 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:90-101 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:98-108 — 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/com/aurora/music/ui/screens/stats/InsightsScreen.kt:228 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:228-238 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:228-238 — 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/com/aurora/music/viewmodel/DetailViewModel.kt:52 — app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt:52-62 | desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.kt:48-58 — 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/com/aurora/music/ui/screens/auth/SignInScreen.kt:255 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:255-265 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:335-345 — 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/com/aurora/music/data/SonicStore.kt:75 — app/src/main/java/com/aurora/music/data/SonicStore.kt:75-86 | desktop/src/main/kotlin/com/aurora/music/data/SonicStore.kt:59-69 — 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/com/aurora/music/data/updates/AppUpdater.kt:151 — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:151-162 | desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt:164-174 — 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/com/aurora/music/data/DiscordRpc.kt:80 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:80-90 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:83-93 — 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) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:588 — desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:588-599 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:602-612 — 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) core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:342 — core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:342-352 | core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:354-364 — 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/com/aurora/music/data/SpotifyWebPlayer.kt:307 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:307-317 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:282-292 — 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/com/aurora/music/ui/screens/settings/MergeOptionsScreen.kt:37 — app/src/main/java/com/aurora/music/ui/screens/settings/MergeOptionsScreen.kt:37-47 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/MergeOptionsScreen.kt:28-38 — 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/com/aurora/music/ui/theme/Type.kt:51 — app/src/main/java/com/aurora/music/ui/theme/Type.kt:51-61 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt:16-26 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×15
  • Edited copy of a member (13 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:694 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:694-706 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:694-706 — 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/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:183 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:183-195 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:183-195 — 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/com/aurora/music/viewmodel/MixViewModel.kt:91 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:91-103 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:84-96 — 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/com/aurora/music/ui/screens/aidj/AiDjControls.kt:264 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:264-276 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:266-278 — 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/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:37 — app/src/main/java/com/aurora/music/playback/network/endpoint/RendererTrustStore.kt:37-49 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/ConnectPlatform.kt:59-71 — 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/com/aurora/music/ui/screens/player/ConcertControls.kt:233 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:233-245 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:234-246 — 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/com/aurora/music/playback/network/NetworkOutputManager.kt:200 — app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:200-212 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/DesktopConnect.kt:121-133 — 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/com/aurora/music/ui/AuroraApp.kt:2151 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:2151-2163 | app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:113-125 — 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/com/aurora/music/ui/screens/player/PlayerScreen.kt:1429 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1429-1441 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:1015-1028 — 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/com/aurora/music/ui/screens/explore/ExploreScreen.kt:175 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:175-187 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:143-155 — 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/com/aurora/music/playback/network/NetworkOutputManager.kt:144 — app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:144-156 | app/src/main/java/com/aurora/music/playback/network/NetworkOutputManager.kt:214-226 — 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/com/aurora/music/ui/screens/explore/ExploreScreen.kt:119 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:119-131 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:124-139 — 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/com/aurora/music/ui/screens/settings/BackupScreen.kt:102 — app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:102-114 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/BackupScreen.kt:96-108 — 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/com/aurora/music/ui/screens/explore/ExploreScreen.kt:157 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:157-169 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:142-155 — 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/com/aurora/music/data/SoundCloudWebWriter.kt:42 — app/src/main/java/com/aurora/music/data/SoundCloudWebWriter.kt:42-54 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SoundCloudWebWriter.kt:44-58 — 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.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×15
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:292 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:292-312 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:216-236 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:292` 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, `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:215` calls `onMove` and `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:291` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:125 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:125-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:120-140 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:228 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:228-248 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:227-247 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:228` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:29 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:29-49 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:26-46 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:47 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:47-67 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:50-70 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:68` calls `rememberModalBottomSheetState` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:71` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:154 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:154-174 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:155-175 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:70 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:70-90 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:67-87 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/StemSeparator.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/mix/StemSeparator.kt:70` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:269 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:269-289 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:943-963 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:269` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:537 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:537-557 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:529-549 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:273 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:273-293 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:248-268 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:134 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:134-154 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:147-167 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:134` 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/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:130 — app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:130-150 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:80-100 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:130` 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 first that the copies are not typed on the same thing: `UpdateDownload` names `com.aurora.music.data.updates.UpdateDownload` in one and `com.aurora.music.desktop.updates.UpdateDownload` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:78` calls `Text`, `appString` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:129` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:378 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:378-398 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:283-303 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:378` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:377` calls `StorageRow`, `appString` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:282` 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 (21 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:589 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:589-609 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:581-601 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:210 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:210-230 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:277-297 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:210` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×14
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:317 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:317-336 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:348-367 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:317` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:347` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:316` 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/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:210 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:210-229 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:214-233 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:210` 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: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:213` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:209` 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/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:247 — app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:247-266 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:94-113 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt` as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:111 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:111-130 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:111-130 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:276 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:276-295 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:306-325 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:276` 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 (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:451 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:451-470 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:451-470 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:113 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:113-132 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:111-130 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:113` 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 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 (20 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:118 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:118-137 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:117-136 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:118` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/viewmodel/AiPlaylistViewModel.kt:54 — app/src/main/java/com/aurora/music/viewmodel/AiPlaylistViewModel.kt:54-73 | desktop/src/main/kotlin/com/aurora/music/viewmodel/AiPlaylistViewModel.kt:52-71 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/AiPlaylistViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/AiPlaylistViewModel.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:124 — app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:124-143 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:120-139 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:124` 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 (20 lines × 2) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:182 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:182-201 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:175-194 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.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 (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:351 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:351-370 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:383-402 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:351` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:382` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:350` 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/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:508 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:508-527 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:502-521 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (20 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:671 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:671-690 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:671-690 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×14
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:234 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:234-250 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:249-265 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:234` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:248` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:233` 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 (17 lines × 2) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:55 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:55-71 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:53-69 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:154 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:154-170 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:154-170 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:306 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:306-322 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:306-322 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:306` 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 (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:363 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:363-379 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:384-400 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:363` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:161 — app/src/main/java/com/aurora/music/data/SonicFeatures.kt:161-177 | desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:161-177 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicFeatures.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:262 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:262-278 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:249-265 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:262` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:164 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:164-180 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:163-179 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:164` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:116 — app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:116-132 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:91-107 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt` as WHOLE FILES: 86% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:119 — app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:119-135 | desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:86-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:119` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:79 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:79-95 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:92-108 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:79` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:210 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:210-226 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:210-226 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:614 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:614-630 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:606-622 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:265 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:265-281 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:124-140 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:265` 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.
X2 · Cancellation propagation · Suspend function with a blocking request · ×14
  • Suspend function with a blocking request: ensureModel desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:62 — `ensureModel` suspends, but makes its request with `URL(…).openConnection()`, 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: artworkBytes desktop/src/main/kotlin/com/aurora/music/desktop/player/MediaControls.kt:165 — `artworkBytes` suspends, but makes its request with `newCall(…).execute()`, 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: fetchEmbedTracks core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:67 — `fetchEmbedTracks` suspends, but makes its request with `newCall(…).execute()`, 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: request core/src/main/kotlin/com/aurora/music/data/remote/AppleMusicClient.kt:128 — `request` suspends, but makes its request with `newCall(…).execute()`, 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: uploadFromUrl core/src/main/kotlin/com/aurora/music/data/remote/ImgurUploader.kt:17 — `uploadFromUrl` suspends, but makes its request with `newCall(…).execute()`, 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: uploadBytes core/src/main/kotlin/com/aurora/music/data/remote/ImgurUploader.kt:26 — `uploadBytes` suspends, but makes its request with `newCall(…).execute()`, 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: userInfo REDACTED:45 — `userInfo` suspends, but makes its request with `newCall(…).execute()`, 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: fetchImage core/src/main/kotlin/com/aurora/music/data/remote/MusicBrainzClient.kt:98 — `fetchImage` suspends, but makes its request with `newCall(…).execute()`, 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: refreshLogin core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:97 — `refreshLogin` suspends, but makes its request with `newCall(…).execute()`, 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: attempt core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:112 — `attempt` suspends, but makes its request with `newCall(…).execute()`, 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: candidates core/src/main/kotlin/com/aurora/music/data/artwork/CoverArtClient.kt:32 — `candidates` suspends, but makes its request with `newCall(…).execute()`, 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: fetchPart core/src/main/kotlin/com/aurora/music/ai/DjModelStore.kt:117 — `fetchPart` suspends, but makes its request with `newCall(…).execute()`, 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: ensureModel app/src/main/java/com/aurora/music/mix/StemSeparator.kt:65 — `ensureModel` suspends, but makes its request with `URL(…).openConnection()`, 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: fetch app/src/main/java/com/aurora/music/data/AutoEqRepository.kt:69 — `fetch` suspends, but makes its request with `newCall(…).execute()`, 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`.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×13
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:290 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:290-303 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:290-303 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/data/VisualizerLabels.kt:6 — app/src/main/java/com/aurora/music/data/VisualizerLabels.kt:6-19 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerLabels.kt:7-20 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:258 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:258-271 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:299-312 — 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.
  • Edited copy of a member (14 corresponding lines) core/src/main/kotlin/com/aurora/music/playback/DspCoeffBuilder.kt:190 — core/src/main/kotlin/com/aurora/music/playback/DspCoeffBuilder.kt:190-203 | core/src/main/kotlin/com/aurora/music/playback/DspCoeffBuilder.kt:208-221 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:572 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:572-585 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:564-577 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:334 — app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:334-347 | desktop/src/main/kotlin/com/aurora/music/desktop/auth/AccountAuthenticator.kt:56-70 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:911 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:911-924 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:908-921 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:92 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:92-105 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:95-109 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:51 — app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:51-64 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:59-72 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/WebSignInDialog.kt:141 — app/src/main/java/com/aurora/music/ui/screens/auth/WebSignInDialog.kt:141-154 | app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:226-245 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt:64 — app/src/main/java/com/aurora/music/viewmodel/DetailViewModel.kt:64-77 | desktop/src/main/kotlin/com/aurora/music/viewmodel/DetailViewModel.kt:60-73 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/Type.kt:22 — app/src/main/java/com/aurora/music/ui/theme/Type.kt:22-35 | desktop/src/main/kotlin/com/aurora/music/desktop/resources/AppResources.kt:21-34 — 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.
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:202 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:202-215 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:270-284 — 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 · Duplicated block (18 lines × 2) · ×13
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/components/Common.kt:85 — app/src/main/java/com/aurora/music/ui/components/Common.kt:85-102 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:167-184 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Common.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Common.kt:85` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:185` calls `Row`, `weight` and `app/src/main/java/com/aurora/music/ui/components/Common.kt:103` 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 (18 lines × 2) app/src/main/java/com/aurora/music/ui/components/Common.kt:114 — app/src/main/java/com/aurora/music/ui/components/Common.kt:114-131 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:205-222 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Common.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Common.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 (18 lines × 2) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:79 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:79-96 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:80-97 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:79` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:260 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:260-277 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:181-198 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:260` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:77 — app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:77-94 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:85-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:77` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:299 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:299-316 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:329-346 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:299` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:347` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:317` 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 (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:218 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:218-235 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:185-202 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:218` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:88 — app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:88-105 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SearchViewModel.kt:75-92 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/SearchViewModel.kt` as WHOLE FILES: 86% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:88` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:47 — app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:47-64 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:46-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.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 (18 lines × 2) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:197 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:197-214 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:248-265 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/DiscordRpc.kt` and `desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:187 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:187-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:188-205 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:310 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:310-327 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:307-324 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:310` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:623 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:623-640 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:610-627 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:623` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×12
  • Edited copy of a member (18 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/RecapInsights.kt:21 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapInsights.kt:21-68 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapInsights.kt:51-70 — 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/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:159 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:159-176 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:138-155 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:962 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:962-979 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:959-976 — 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/com/aurora/music/viewmodel/MixViewModel.kt:280 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:280-297 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:271-288 — 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/com/aurora/music/ui/screens/settings/EqEditor.kt:439 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:439-456 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:466-483 — 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/com/aurora/music/ui/screens/settings/EqEditor.kt:370 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:370-387 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:397-414 — 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/com/aurora/music/ui/components/TabletNavigation.kt:161 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:161-178 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:233-250 — 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/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:147 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:147-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:140-157 — 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/com/aurora/music/data/PlacesStore.kt:59 — app/src/main/java/com/aurora/music/data/PlacesStore.kt:59-76 | desktop/src/main/kotlin/com/aurora/music/desktop/platform/PlacesStore.kt:104-123 — 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/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:207 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:207-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:205-223 — 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/com/aurora/music/ui/screens/auth/SignInScreen.kt:522 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:522-539 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:541-559 — 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/com/aurora/music/playback/ConvolutionProcessor.kt:172 — app/src/main/java/com/aurora/music/playback/ConvolutionProcessor.kt:172-192 | core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:353-370 — 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 copy of a member (12 corresponding lines) · ×12
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:277 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:277-288 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:277-288 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:241 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:241-252 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:234-245 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:315 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:315-326 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:333-346 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/navigation/NavMenu.kt:65 — app/src/main/java/com/aurora/music/navigation/NavMenu.kt:65-76 | desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt:51-62 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/data/ProfileImages.kt:77 — app/src/main/java/com/aurora/music/data/ProfileImages.kt:77-91 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileImages.kt:58-69 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:772 — desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:772-785 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:959-970 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:126 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:126-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:135-147 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:67 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:67-78 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:69-81 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1089 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1089-1105 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:946-957 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:126 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:126-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:179-191 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/aurora/music/ui/components/Common.kt:134 — app/src/main/java/com/aurora/music/ui/components/Common.kt:134-145 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:241-252 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:217 — desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:217-228 | desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:231-244 — 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 (3 corresponding lines) · ×11
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/data/PlacesStore.kt:135 — app/src/main/java/com/aurora/music/data/PlacesStore.kt:135-137 | desktop/src/main/kotlin/com/aurora/music/desktop/platform/PlacesStore.kt:136-138 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:137 — app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:137-139 | desktop/src/main/kotlin/com/aurora/music/data/AnimatedCovers.kt:93-95 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:508 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:508-510 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:505-507 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:287 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:287-289 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:221-223 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:179 — app/src/main/java/com/aurora/music/data/SonicFeatures.kt:179-181 | desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:179-181 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:231 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:231-233 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:235-237 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:146 — app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:146-149 | desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:146-148 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/mix/MixStore.kt:29 — app/src/main/java/com/aurora/music/mix/MixStore.kt:29-32 | desktop/src/main/kotlin/com/aurora/music/mix/MixStore.kt:29-31 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:190 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:190-192 | desktop/src/main/kotlin/com/aurora/music/ui/screens/explore/ExploreScreen.kt:158-160 — 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.
  • Edited copy of a member (3 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:90 — app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:90-92 | desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt:84-86 — 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.
  • Edited copy of a member (3 corresponding lines) core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:191 — core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:191-193 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:303-306 — 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 · Duplicated block (23 lines × 2) · ×11
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:310 — app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:310-332 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:168-190 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt` as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:310` 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/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:156 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:156-178 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:169-191 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:156` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:65 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:65-87 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:65-87 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.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. 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 (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1009 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1009-1031 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1006-1028 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:68 — app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:68-90 | desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:63-85 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:66 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:66-88 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:58-80 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:66` 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/com/aurora/music/ui/components/TabletNavigation.kt:136 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:136-158 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:208-230 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:136` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:207` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:135` 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 (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:263 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:263-285 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:330-352 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.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 (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:329 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:329-351 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:329-351 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:267 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:267-289 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:266-288 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:28 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:28-50 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:28-50 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D3 · God Classes · ClassTooLong · ×10
  • ClassTooLong: DesktopPlaybackEngine desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:53 — ClassTooLong — 1019 significant lines (blank, comment-only and punctuation-only lines excluded), 107 methods. The bar is 400 significant lines; this is 619 over it, 2.55× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: PlayerViewModel app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:112 — ClassTooLong — 1008 significant lines (blank, comment-only and punctuation-only lines excluded), 89 methods. The bar is 400 significant lines; this is 608 over it, 2.52× 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: PlaybackService app/src/main/java/com/aurora/music/playback/PlaybackService.kt:49 — ClassTooLong — 791 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 391 over it, 1.98× 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: DesktopPlayer desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:125 — ClassTooLong — 749 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 349 over it, 1.87× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: UsbAudioSink decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:29 — ClassTooLong — 679 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 279 over it, 1.70× 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: PlaybackAudioOutput app/src/main/java/com/aurora/music/playback/PlaybackAudioOutput.kt:38 — ClassTooLong — 588 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 188 over it, 1.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: MusicRepository core/src/main/kotlin/com/aurora/music/data/MusicRepository.kt:103 — ClassTooLong — 439 significant lines (blank, comment-only and punctuation-only lines excluded), 103 methods. The bar is 400 significant lines; this is 39 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: SpotifyWebBackend core/src/main/kotlin/com/aurora/music/data/SpotifyWebBackend.kt:36 — ClassTooLong — 407 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 7 over it, 1.02× 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: AppContainer app/src/main/java/com/aurora/music/data/AppContainer.kt:37 — ClassTooLong — 407 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 7 over it, 1.02× 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: ReverbKernel core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:16 — ClassTooLong — 401 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 1 over it, 1.00× 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 (24 corresponding lines) · ×10
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:181 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:181-204 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:174-197 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:373 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:373-398 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:280-303 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:838 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:838-861 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:835-858 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:186 — app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:186-209 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:166-189 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:223 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:223-247 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:265-288 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1346 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1346-1369 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:862-901 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:225 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:225-248 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:227-250 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:284 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:284-310 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:354-377 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:227 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:227-250 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:241-265 — 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.
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:369 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:369-392 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:344-367 — 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 (16 corresponding lines) · ×10
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/mix/MixStore.kt:57 — app/src/main/java/com/aurora/music/mix/MixStore.kt:57-72 | desktop/src/main/kotlin/com/aurora/music/mix/MixStore.kt:66-82 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/mix/MixStore.kt:41 — app/src/main/java/com/aurora/music/mix/MixStore.kt:41-56 | desktop/src/main/kotlin/com/aurora/music/mix/MixStore.kt:43-64 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:188 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:188-203 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:193-208 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:355 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:355-370 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:355-370 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:173 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:173-188 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:167-182 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:93 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:93-108 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:93-108 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:253 — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:253-268 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt:228-243 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/data/TagEditor.kt:31 — app/src/main/java/com/aurora/music/data/TagEditor.kt:31-46 | desktop/src/main/kotlin/com/aurora/music/desktop/library/TagEditor.kt:24-39 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/Theme.kt:115 — app/src/main/java/com/aurora/music/ui/theme/Theme.kt:115-132 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Theme.kt:163-178 — 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.
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:592 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:592-609 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:367-382 — 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 (15 corresponding lines) · ×10
  • Edited copy of a member (15 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:608 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:608-622 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:595-609 — 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/com/aurora/music/viewmodel/LocalProfileViewModel.kt:44 — app/src/main/java/com/aurora/music/viewmodel/LocalProfileViewModel.kt:44-58 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LocalProfileViewModel.kt:44-58 — 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/com/aurora/music/ui/screens/auth/SpotifyWebStep.kt:54 — app/src/main/java/com/aurora/music/ui/screens/auth/SpotifyWebStep.kt:54-69 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:323-337 — 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/com/aurora/music/ui/screens/player/QueueScreen.kt:422 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:422-436 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:402-416 — 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/com/aurora/music/viewmodel/PlayerViewModel.kt:1220 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1220-1234 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:1037-1051 — 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/com/aurora/music/viewmodel/MixViewModel.kt:66 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:66-80 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:59-73 — 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/com/aurora/music/playback/network/RemoteSessionPlayer.kt:104 — app/src/main/java/com/aurora/music/playback/network/RemoteSessionPlayer.kt:104-118 | desktop/src/main/kotlin/com/aurora/music/desktop/connect/RemotePlayerController.kt:92-108 — 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/com/aurora/music/playback/dsd/NativeDsdUsbTransport.kt:45 — app/src/main/java/com/aurora/music/playback/dsd/NativeDsdUsbTransport.kt:45-59 | app/src/main/java/com/aurora/music/playback/usb/NativeUsbPcmTransport.kt:33-49 — 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/com/aurora/music/viewmodel/LibraryViewModel.kt:229 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:229-248 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:209-223 — 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) core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryFiles.kt:103 — core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryFiles.kt:103-117 | core/src/main/kotlin/com/aurora/music/data/settings/ProcessingEditor.kt:119-134 — 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.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×9
  • Edited copy of a member (10 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:258 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:258-267 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:258-267 — 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/com/aurora/music/ui/screens/settings/EqEditor.kt:390 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:390-399 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:417-426 — 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/com/aurora/music/data/SonicEngine.kt:169 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:169-178 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:143-152 — 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/com/aurora/music/mix/StemSeparator.kt:197 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:197-206 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:202-211 — 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/com/aurora/music/viewmodel/TagEditViewModel.kt:67 — app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:67-79 | desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:64-73 — 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/com/aurora/music/viewmodel/PlayerViewModel.kt:1149 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1149-1160 | app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1162-1171 — 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/com/aurora/music/ui/screens/player/LyricsScreen.kt:613 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:613-622 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:384-393 — 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/com/aurora/music/ui/theme/Theme.kt:103 — app/src/main/java/com/aurora/music/ui/theme/Theme.kt:103-113 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Theme.kt:140-149 — 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) core/src/main/kotlin/com/aurora/music/playback/GaplessTrimmer.kt:198 — core/src/main/kotlin/com/aurora/music/playback/GaplessTrimmer.kt:198-207 | core/src/main/kotlin/com/aurora/music/playback/GaplessTrimmer.kt:209-218 — 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.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×8
  • Edited copy of a member (17 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:352 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:352-368 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:447-463 — 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/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:137 — app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:137-153 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:136-152 — 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/com/aurora/music/ui/screens/auth/SignInScreen.kt:327 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:327-343 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:348-364 — 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/com/aurora/music/ui/components/TabletNavigation.kt:181 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:181-197 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:253-270 — 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/com/aurora/music/ui/screens/radio/RadioScreen.kt:255 — app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:255-271 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:256-272 — 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/com/aurora/music/ui/screens/player/PlayerScreen.kt:1182 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1182-1208 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:1087-1103 — 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) desktop/src/main/kotlin/com/aurora/music/desktop/natives/AlsaOutput.kt:45 — desktop/src/main/kotlin/com/aurora/music/desktop/natives/AlsaOutput.kt:45-61 | desktop/src/main/kotlin/com/aurora/music/desktop/natives/WasapiOutput.kt:52-68 — 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/com/aurora/music/viewmodel/ComparisonViewModel.kt:172 — app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:172-194 | desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:139-155 — 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 · Duplicated block (34 lines × 2) · ×8
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:473 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:473-506 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:473-506 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:254 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:254-287 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:255-288 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:254` 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 (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:865 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:865-898 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:862-895 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:35 — app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:35-68 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:35-68 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:219 — app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:219-252 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:220-253 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:107 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:107-140 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:100-133 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:603 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:603-636 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:603-636 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (34 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:128 — app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:128-161 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:128-161 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×8
  • Duplicated block (22 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:52 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:52-73 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:64-85 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:52` 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 (22 lines × 2) app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:42 — app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:42-63 | desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:39-60 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 lines × 2) app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:35 — app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:35-56 | desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt:34-55 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt` as WHOLE FILES: 83% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (22 lines × 2) app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:43 — app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:43-64 | desktop/src/main/kotlin/com/aurora/music/ui/components/GuestLikesPrompt.kt:43-64 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/GuestLikesPrompt.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:43` 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 (22 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:188 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:188-209 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:202-223 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:188` 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 (22 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:159 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:159-180 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:159-180 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (22 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:55 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:55-76 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:57-78 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (22 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:186 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:186-207 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:185-206 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:186` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×7
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/data/SonicEngine.kt:109 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:109-142 | app/src/main/java/com/aurora/music/data/SonicEngine.kt:198-246 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:83-116 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:172-220 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:346 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:346-362 | app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:140-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:347-364 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:214-233 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:86 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:86-226 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:310-350 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:77-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:175-213 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:259 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:259-320 | app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:97-183 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:243-282 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:73-157 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:383 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:383-405 | app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:408-420 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:272-296 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:299-312 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:30 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:30-62 | app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:64-91 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:30-62 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:64-91 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:602 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:602-636 | app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:727-758 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:602-636 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:727-758 — 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 (20 corresponding lines) · ×7
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/data/DiscordRpc.kt:138 — app/src/main/java/com/aurora/music/data/DiscordRpc.kt:138-162 | desktop/src/main/kotlin/com/aurora/music/data/DiscordRpc.kt:193-212 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:153 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:153-172 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:153-172 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:113 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:113-132 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:114-133 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:95 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:95-114 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:89-109 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:85 — app/src/main/java/com/aurora/music/viewmodel/SearchViewModel.kt:85-105 | desktop/src/main/kotlin/com/aurora/music/viewmodel/SearchViewModel.kt:73-92 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileScreen.kt:193 — desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileScreen.kt:193-212 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/ProfileScreen.kt:215-234 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/aurora/music/data/SoundCloudWebWriter.kt:76 — app/src/main/java/com/aurora/music/data/SoundCloudWebWriter.kt:76-95 | desktop/src/main/kotlin/com/aurora/music/desktop/web/SoundCloudWebWriter.kt:76-95 — 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 · Duplicated block (26 lines × 2) · ×7
  • Duplicated block (26 lines × 2) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:135 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:135-160 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:138-163 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt` and `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/remote/PodcastClient.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, `desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:166` calls `tagName`, `isNullOrEmpty`, `attribute` and `app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:163` 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 (26 lines × 2) app/src/main/java/com/aurora/music/ui/theme/Shape.kt:20 — app/src/main/java/com/aurora/music/ui/theme/Shape.kt:20-45 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Shape.kt:24-49 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/Shape.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/Shape.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/theme/Shape.kt:22` calls `themedCorner`, `cornerDp` and `app/src/main/java/com/aurora/music/ui/theme/Shape.kt:18` 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 (26 lines × 2) app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt:115 — app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt:115-140 | desktop/src/main/kotlin/com/aurora/music/ui/components/LikeHeart.kt:130-155 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/LikeHeart.kt` as WHOLE FILES: 95% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:414 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:414-439 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:406-431 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:216 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:216-241 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:215-240 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:216` 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 (26 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:374 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:374-399 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:406-431 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:88 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:88-113 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:81-106 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:88` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×7
  • Duplicated block (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:640 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:640-670 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:733-763 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:640` 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 (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:344 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:344-374 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:215-245 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:344` 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 (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:82 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:82-112 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:85-115 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:82` 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/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:131 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:131-161 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:119-149 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:131` 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 (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/HiddenSongsScreen.kt:24 — app/src/main/java/com/aurora/music/ui/screens/settings/HiddenSongsScreen.kt:24-54 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/HiddenSongsScreen.kt:22-52 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/HiddenSongsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/HiddenSongsScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/HiddenSongsScreen.kt:24` 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 (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:421 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:421-451 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:418-448 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (31 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:317 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:317-347 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:326-356 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×6
  • Edited copy of a member (26 corresponding lines) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:65 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:65-90 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:62-87 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:328 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:328-353 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:328-353 — 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/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:386 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:386-411 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:340-365 — 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/com/aurora/music/ui/components/FeedShelves.kt:57 — app/src/main/java/com/aurora/music/ui/components/FeedShelves.kt:57-84 | desktop/src/main/kotlin/com/aurora/music/ui/components/FeedShelves.kt:67-92 — 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/com/aurora/music/ui/screens/search/SearchScreen.kt:344 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:344-369 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:519-548 — 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/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:402 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:402-427 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:434-460 — 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 (27 corresponding lines) · ×6
  • Edited copy of a member (27 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:454 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:454-480 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:451-477 — 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/com/aurora/music/ui/screens/stats/RecapInbox.kt:140 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapInbox.kt:140-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapInbox.kt:144-170 — 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/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:119 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:119-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:112-138 — 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/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:22 — app/src/main/java/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:22-48 | desktop/src/main/kotlin/com/aurora/music/ui/screens/profile/LocalProfileDialog.kt:26-56 — 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/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:177 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:177-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:215-241 — 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/com/aurora/music/ui/components/TrackSortMenu.kt:45 — app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:45-71 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt:47-73 — 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 (37 corresponding lines) · ×6
  • Edited copy of a member (37 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:19 — app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:19-55 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:19-55 — 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.
  • Edited copy of a member (37 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:974 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:974-1019 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1022-1058 — 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.
  • Edited copy of a member (37 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:33 — app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:33-70 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:31-67 — 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.
  • Edited copy of a member (37 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1049 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1049-1087 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:908-944 — 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.
  • Edited copy of a member (37 corresponding lines) app/src/main/java/com/aurora/music/data/YouTubeDownloader.kt:72 — app/src/main/java/com/aurora/music/data/YouTubeDownloader.kt:72-110 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YouTubeDownloader.kt:92-128 — 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.
  • Edited copy of a member (37 corresponding lines) core/src/main/kotlin/com/aurora/music/playback/Fft.kt:29 — core/src/main/kotlin/com/aurora/music/playback/Fft.kt:29-65 | core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionConvolver.kt:14-52 — 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 · Duplicated block (35 lines × 2) · ×6
  • Duplicated block (35 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:67 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:67-101 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:56-90 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (35 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1035 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1035-1069 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:1032-1066 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (35 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:65 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:65-99 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:66-100 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.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. Note first that the copies are not typed on the same thing: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (35 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:331 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:331-365 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:358-392 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (35 lines × 2) app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:59 — app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:59-93 | desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt:58-92 — before extracting anything, compare `app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt` and `desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt` as WHOLE FILES: 83% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (35 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:106 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:106-140 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:108-142 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:106` 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.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×6
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/ProcessingPreset.kt:177 — `ProcessingPresetCodec.readAudio` is public, takes a document from its caller (line 213) and hands it to `ProcessingPresetCodec.validateShape`, which calls itself at line 177 with a piece of `actual` — the function is not `tailrec`, so every call is a real frame — and nowhere in `ProcessingPresetCodec.validateShape` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `ProcessingPresetCodec.validateShape` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:427 — `SoundCloudBackend.song` is public, takes a document from its caller (line 432) and hands it to `SoundCloudBackend.art`, which calls itself at line 427 with a piece of `item` — the function is not `tailrec`, so every call is a real frame — and nowhere in `SoundCloudBackend.art` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `SoundCloudBackend.art` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicClient.kt:37 — `objects` is public, takes a document from its caller (line 34) and hands it to `visit`, which calls itself at line 37 with a piece of `node` (and at line 38) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:20 — `YouTubeMusicParser.home` is public, takes a document from its caller (line 17) and hands it to `visit`, which calls itself at line 20 with a piece of `node` (and at line 35) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:51 — `YouTubeMusicParser.categories` is public, takes a document from its caller (line 48) and hands it to `visit`, which calls itself at line 51 with a piece of `node` (and at line 65, line 66) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:83 — `YouTubeMusicParser.results` is public, takes a document from its caller (line 77) and hands it to `visit`, which calls itself at line 83 with a piece of `node` (and at line 137, line 138) — the function is not `tailrec`, so every call is a real frame — and nowhere in `visit` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `visit` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
X3 · Exception handling · Swallowed exception (empty catch) · ×6
  • Swallowed exception (empty catch) desktop/src/main/kotlin/com/aurora/music/ui/components/TileMap.kt:89 — 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) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:99 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:109 — 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) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:123 — 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) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.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.
  • Swallowed exception (empty catch) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:193 — 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.
D35 · Change Coupling · Change coupling · ×5
  • Change coupling: SettingsKeys.kt ↔ SettingsStore.kt core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt:1 — `core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt` and `core/src/main/kotlin/com/aurora/music/data/SettingsStore.kt` change together 80% of the time (20 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 20 shared commits counted here, the most recent 3 are `355fe01e` android/desktop: reorder and hide library tabs, library opens on the …; `eef8d579` android: option to select a specific music folder instead of showing …; `6a40000a` android: a toggle under appearance to enable per song covers instead … — run `git show` on any of them.
  • Change coupling: SettingsKeys.kt ↔ SettingsModels.kt core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt:1 — `core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt` and `core/src/main/kotlin/com/aurora/music/data/SettingsModels.kt` change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `4372036e` android/desktop: apple music joins the merged library (feeds, search,…; `ac4acd0d` android/desktop: apple music source (catalogue, guest mode, library, …; `355fe01e` android/desktop: reorder and hide library tabs, library opens on the … — run `git show` on any of them.
  • Change coupling: AuroraApp.kt ↔ LibraryScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1 — `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `c8e911e3` desktop: apple music sign-in, guest likes and source wiring; `f1d2bb24` android/desktop: Paper squares borders along with what they frame; `355fe01e` android/desktop: reorder and hide library tabs, library opens on the … — run `git show` on any of them.
  • Change coupling: AuroraApp.kt ↔ PlayerScreen.kt desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1 — `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `844b47d3` android/desktop: tap title/artist to open album/artist, hold for play…; `e54ebd59` desktop: hide queue, loop and shuffle in ai dj mode; `6e3992eb` desktop: ai dj voice, speaking stage, hold to talk button — run `git show` on any of them.
  • Change coupling: YoutubeResolver.kt ↔ PlayerScreen.kt app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:1 — `app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt` and `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `2bef02f8` fixed quality pill in player not showing stats when streaming from yo…; `38bc6f0d` Added music videos from YouTube to songs played/streamed from local/s…; `c193c72e` Fixed the pause/delay when switching between audio and video at the t… — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×5
  • Edited copy of a member (21 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:623 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:623-643 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:610-630 — 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.
  • Edited copy of a member (21 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/RelatedPane.kt:41 — app/src/main/java/com/aurora/music/ui/screens/player/RelatedPane.kt:41-61 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/RelatedPane.kt:34-54 — 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.
  • Edited copy of a member (21 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:81 — app/src/main/java/com/aurora/music/viewmodel/TagEditViewModel.kt:81-102 | desktop/src/main/kotlin/com/aurora/music/viewmodel/TagEditViewModel.kt:75-95 — 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.
  • Edited copy of a member (21 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:181 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:181-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:182-202 — 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.
  • Edited copy of a member (21 corresponding lines) app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:44 — app/src/main/java/com/aurora/music/data/AnimatedCovers.kt:44-65 | desktop/src/main/kotlin/com/aurora/music/data/AnimatedCovers.kt:33-53 — 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 copy of a member (23 corresponding lines) · ×5
  • Edited copy of a member (23 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:670 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:670-692 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:670-692 — 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/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:430 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:430-452 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:463-487 — 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/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:261 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:261-283 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:248-270 — 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/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:128 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:128-150 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:355-377 — 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/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:149 — app/src/main/java/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:149-171 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SpeedPitchSheet.kt:113-136 — 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 (43 corresponding lines) · ×5
  • Edited copy of a member (43 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:196 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:196-238 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:195-237 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (43 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:773 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:773-815 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:773-815 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (43 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:81 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:81-123 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:84-132 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (43 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:171 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:171-214 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:181-223 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (43 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:588 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:588-630 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:674-723 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×5
  • Edited copy of a member (34 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:402 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:402-435 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:429-462 — 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.
  • Edited copy of a member (34 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:362 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:362-395 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:383-416 — 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.
  • Edited copy of a member (34 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:247 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:247-282 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:233-266 — 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.
  • Edited copy of a member (34 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:83 — app/src/main/java/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:83-116 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/DuplicatesScreen.kt:94-127 — 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.
  • Edited copy of a member (34 corresponding lines) app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:66 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:66-99 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:73-111 — 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 (29 corresponding lines) · ×5
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:151 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:151-179 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:144-172 — 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.
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:286 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:286-314 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:273-302 — 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.
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:191 — app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:191-219 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:182-216 — 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.
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:332 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:332-367 | desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:455-483 — 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.
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/AnimatedCoverSettings.kt:28 — app/src/main/java/com/aurora/music/ui/screens/settings/AnimatedCoverSettings.kt:28-56 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:96-125 — 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 (28 corresponding lines) · ×5
  • Edited copy of a member (28 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:492 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:492-519 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:511-538 — 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.
  • Edited copy of a member (28 corresponding lines) app/src/main/java/com/aurora/music/data/SonicEngine.kt:68 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:68-106 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:53-80 — 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.
  • Edited copy of a member (28 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:46 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:46-73 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:51-86 — 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.
  • Edited copy of a member (28 corresponding lines) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:403 — desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:403-434 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:458-485 — 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.
  • Edited copy of a member (28 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:236 — app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:236-263 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:289-317 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×5
  • Edited copy of a member (22 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:468 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:468-489 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:467-488 — 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/com/aurora/music/playback/YoutubeResolver.kt:103 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:103-131 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:110-131 — 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/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:210 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:210-231 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:200-221 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:305 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:305-326 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:305-326 — 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/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:317 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:317-338 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:305-326 — 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 (19 corresponding lines) · ×5
  • Edited copy of a member (19 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:163 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:163-181 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:165-183 — 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:236 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:236-254 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:236-254 — 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/com/aurora/music/ui/screens/player/ConnectSheet.kt:142 — app/src/main/java/com/aurora/music/ui/screens/player/ConnectSheet.kt:142-161 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:132-150 — 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/com/aurora/music/ui/screens/player/QueueScreen.kt:333 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:333-351 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:266-287 — 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/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:77 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:77-95 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsSearchUi.kt:90-108 — 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 (2 corresponding lines) · ×5
  • Edited copy of a member (2 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:210 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:210-211 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:210-211 — These two members are one piece of code written twice and then edited apart: 2 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 (2 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:79 — app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:79-80 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:74-75 — These two members are one piece of code written twice and then edited apart: 2 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 (2 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:85 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:85-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:87-88 — These two members are one piece of code written twice and then edited apart: 2 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 (2 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:54 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageRows.kt:54-55 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageRows.kt:56-57 — These two members are one piece of code written twice and then edited apart: 2 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 (2 corresponding lines) core/src/main/kotlin/com/aurora/music/data/routes/ProcessingRouteCodec.kt:84 — core/src/main/kotlin/com/aurora/music/data/routes/ProcessingRouteCodec.kt:84-86 | core/src/main/kotlin/com/aurora/music/data/rules/PresetRuleCodec.kt:142-143 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×5
  • Duplicated block (29 lines × 2) app/src/main/java/com/aurora/music/ui/components/Common.kt:149 — app/src/main/java/com/aurora/music/ui/components/Common.kt:149-177 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:256-284 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Common.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (29 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:604 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:604-632 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:448-476 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:604` 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 (29 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:400 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:400-428 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:394-422 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:400` 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/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:25 — app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:25-53 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:25-53 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt` as WHOLE FILES: 97% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:25` 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 (29 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:164 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:164-192 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:163-191 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:164` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×5
  • Duplicated block (27 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:103 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:103-129 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:116-142 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:103` 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 (27 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:44 — app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:44-70 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:41-67 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/LoudnessSettingsScreen.kt:44` 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:175 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:175-201 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:175-201 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (27 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:404 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:404-430 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:404-430 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:404` 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 (27 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:39 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:39-65 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:32-58 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×5
  • Duplicated block (32 lines × 2) app/src/main/java/com/aurora/music/ui/theme/ContextAccent.kt:64 — app/src/main/java/com/aurora/music/ui/theme/ContextAccent.kt:64-95 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ContextAccent.kt:31-62 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/ContextAccent.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/ContextAccent.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (32 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:266 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:266-297 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:234-265 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:266` 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 (32 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:198 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:198-229 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:192-223 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (32 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:202 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:202-233 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:204-235 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:202` 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 (32 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:114 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:114-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:115-146 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:114` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×5
  • Duplicated block (24 lines × 2) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:52 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:52-75 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:53-76 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:52` 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 (24 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:403 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:403-426 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:430-453 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:403` 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 (24 lines × 2) app/src/main/java/com/aurora/music/ui/theme/Type.kt:85 — app/src/main/java/com/aurora/music/ui/theme/Type.kt:85-108 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt:48-71 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/Type.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/theme/Type.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 (24 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:735 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:735-758 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:735-758 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:735` 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 (24 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:208 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:208-231 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:207-230 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:208` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–11 lines × 2) · ×5
  • Duplicated block (10–11 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1074 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1074-1084 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1035-1044 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1074` 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–11 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1463 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1463-1472 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1439-1449 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1463` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10–11 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1633 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1633-1642 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1582-1592 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1633` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10–11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:259 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:259-269 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:295-304 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:259` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10–11 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:146 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:146-156 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:144-153 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:146` 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 before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:143` calls `Spacer`, `height` and `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:145` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×4
  • Edited copy of a member (25 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:325 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:325-349 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:420-444 — 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/com/aurora/music/ui/screens/stats/RecapSummary.kt:66 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapSummary.kt:66-91 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapSummary.kt:83-107 — 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/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:218 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:218-242 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:202-226 — 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/com/aurora/music/ui/screens/library/LibraryScreen.kt:449 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:449-473 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:586-617 — 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 · Duplicated block (38 lines × 2) · ×4
  • Duplicated block (38 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:210 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:210-247 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:247-284 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:210` 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 (38 lines × 2) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:74 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:74-111 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:72-109 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (38 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:127 — app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:127-164 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:107-144 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:127` 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 (38 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:774 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:774-811 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:774-811 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:774` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (41 lines × 2) · ×4
  • Duplicated block (41 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:156 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:156-196 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:223-263 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:156` 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/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:112 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:112-152 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:91-131 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:112` 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 (41 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:443 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:443-483 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:435-475 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (41 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:635 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:635-675 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:627-667 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D15 · Churn × Complexity Hotspots · Repeated repair · ×3
  • Repeated repair: desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt:21 — desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.kt changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is EngineSettingsBinderKt.bindSettings at line 21), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “desktop/android: gapless/silent playback fixed, option to add your own stats (#41)”; “android/desktop: fixed the same issue when using aurora connect and fixed an issue where imported rooms didn't show”; “brought the desktop app up to date with the latest android features, added youtube music, spotify and soundcloud sign-in through an embedded browser, added youtube music discovery (explore, quick picks, start radio, related) and fixed glass theming, transparent dialogs and the fullscreen freeze”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSettingsBinder.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.
  • Repeated repair: desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt:109 — desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.kt changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is NavMenu.parse at line 109), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “Port remaining Android features to desktop and fix bugs found in hands-on testing”; “brought the desktop app up to date with the latest android features, added youtube music, spotify and soundcloud sign-in through an embedded browser, added youtube music discovery (explore, quick picks, start radio, related) and fixed glass theming, transparent dialogs and the fullscreen freeze”; “Fixed the engine and platform”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/navigation/NavMenu.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.
  • Repeated repair: desktop/src/main/kotlin/com/aurora/music/desktop/natives/WindowNative.kt desktop/src/main/kotlin/com/aurora/music/desktop/natives/WindowNative.kt:32 — desktop/src/main/kotlin/com/aurora/music/desktop/natives/WindowNative.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is WindowNative.addAccentListener at line 32), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “brought the desktop app up to date with the latest android features, added youtube music, spotify and soundcloud sign-in through an embedded browser, added youtube music discovery (explore, quick picks, start radio, related) and fixed glass theming, transparent dialogs and the fullscreen freeze”; “desktop fixes/tweaks”; “Fixes to the desktop shell and strings”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 20:12:17 +05:00' --until='2026-11-16 20:12:17 +05:00' --full-history --no-merges -- desktop/src/main/kotlin/com/aurora/music/desktop/natives/WindowNative.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 · Near-duplicate member pair (28 shared lines) · ×3
  • Near-duplicate member pair (28 shared lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:207 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:207-240 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:169-202 — These two members are variants of one another: 28 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 (28 shared lines) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:187 — app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:187-231 | desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:359-402 — These two members are variants of one another: 28 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 (28 shared lines) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:74 — app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:74-196 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:59-153 — These two members are variants of one another: 28 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 (36 corresponding lines) · ×3
  • Edited copy of a member (36 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:198 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:198-233 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:200-235 — 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.
  • Edited copy of a member (36 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/RecapSummary.kt:28 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapSummary.kt:28-63 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapSummary.kt:38-80 — 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.
  • Edited copy of a member (36 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:215 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:215-250 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:215-250 — 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 (44 corresponding lines) · ×3
  • Edited copy of a member (44 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:206 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:206-249 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:273-316 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (44 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/Type.kt:63 — app/src/main/java/com/aurora/music/ui/theme/Type.kt:63-108 | desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt:28-71 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (44 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:181 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:181-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:195-238 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×3
  • Edited copy of a member (48 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1573 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1573-1620 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/TrackComments.kt:155-208 — 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.
  • Edited copy of a member (48 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:180 — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:180-227 | desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:148-207 — 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.
  • Edited copy of a member (48 corresponding lines) app/src/main/java/com/aurora/music/ui/components/Common.kt:84 — app/src/main/java/com/aurora/music/ui/components/Common.kt:84-131 | desktop/src/main/kotlin/com/aurora/music/ui/components/Common.kt:166-222 — 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 (32 corresponding lines) · ×3
  • Edited copy of a member (32 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:339 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:339-370 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:370-402 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (32 corresponding lines) app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:54 — app/src/main/java/com/aurora/music/viewmodel/HomeViewModel.kt:54-85 | desktop/src/main/kotlin/com/aurora/music/viewmodel/HomeViewModel.kt:51-82 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (32 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:27 — app/src/main/java/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:27-58 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/LanguageSettingsScreen.kt:29-64 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (48 lines × 2) · ×3
  • Duplicated block (48 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:538 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:538-585 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:538-585 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (48 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:247 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:247-294 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:231-278 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:247` 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 (48 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:214 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:214-261 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:211-258 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:214` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×3
  • Duplicated block (28 lines × 2) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:175 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:175-202 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:185-212 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (28 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:219 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:219-246 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:219-246 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:219` 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 (28 lines × 2) app/src/main/java/com/aurora/music/ui/theme/PaperControls.kt:35 — app/src/main/java/com/aurora/music/ui/theme/PaperControls.kt:35-62 | desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperControls.kt:35-62 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/theme/PaperControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/theme/PaperControls.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×3
  • Duplicated block (25 lines × 2) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:104 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:104-128 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:111-135 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:104` 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 (25 lines × 2) app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:152 — app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt:152-176 | desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt:145-169 — before extracting anything, compare `app/src/main/java/com/aurora/music/viewmodel/MixViewModel.kt` and `desktop/src/main/kotlin/com/aurora/music/viewmodel/MixViewModel.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (25 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:185 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:185-209 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:186-210 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (73 lines × 2) · ×3
  • Duplicated block (73 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:432 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:432-504 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:426-498 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:432` 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 (73 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:488 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:488-560 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:372-444 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:488` 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 (73 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:351 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:351-423 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:350-422 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×3
  • Duplicated block (9–10 lines × 2) app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:76 — app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:76-84 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:86-95 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:76` 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 (9–10 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475-484 | app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:428-436 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:438` calls `Box`, `fillMaxWidth`, `padding` and `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:485` 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 (9–10 lines × 2) desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:233 — desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:233-241 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:317-326 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:317` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×3
  • Duplicated block (30 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:137 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:137-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:111-140 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:137` 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 (30 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:295 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:295-324 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:291-320 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:295` 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 (30 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:185 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:185-214 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:187-216 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×3
  • Duplicated block (8–9 lines × 2) app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:243 — app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:243-251 | app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:414-421 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:243` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8–9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:226 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:226-234 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:228-235 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:226` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8–9 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:805 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:805-813 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:835-842 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:805` 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.
D1 · Cyclomatic Complexity · TuningProjectsScreenKt.TuningProjectsScreen (cyclomatic 60) · ×2
  • TuningProjectsScreenKt.TuningProjectsScreen (cyclomatic 60) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45 — TuningProjectsScreenKt.TuningProjectsScreen has cyclomatic complexity 60 (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.
  • TuningProjectsScreenKt.TuningProjectsScreen (cyclomatic 60) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:42 — TuningProjectsScreenKt.TuningProjectsScreen has cyclomatic complexity 60 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PodcastClient.parseFeed (cyclomatic 52) · ×2
  • PodcastClient.parseFeed (cyclomatic 52) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77 — PodcastClient.parseFeed has cyclomatic complexity 52 (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.
  • PodcastClient.parseFeed (cyclomatic 52) desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:78 — PodcastClient.parseFeed has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VisualizerCanvasKt.VisualizerCanvas (cyclomatic 37) · ×2
  • VisualizerCanvasKt.VisualizerCanvas (cyclomatic 37) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:17 — VisualizerCanvasKt.VisualizerCanvas has cyclomatic complexity 37 (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.
  • VisualizerCanvasKt.VisualizerCanvas (cyclomatic 37) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:17 — VisualizerCanvasKt.VisualizerCanvas has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · EqEditorKt.EqCurve (cyclomatic 35) · ×2
  • EqEditorKt.EqCurve (cyclomatic 35) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:169 — EqEditorKt.EqCurve has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • EqEditorKt.EqCurve (cyclomatic 35) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:178 — EqEditorKt.EqCurve has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SonicFeatures.analyzeSamples (cyclomatic 32) · ×2
  • SonicFeatures.analyzeSamples (cyclomatic 32) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:24 — SonicFeatures.analyzeSamples has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • SonicFeatures.analyzeSamples (cyclomatic 32) desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:24 — SonicFeatures.analyzeSamples has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TuningFitSettingsDialogKt.TuningFitSettingsDialog (cyclomatic 29) · ×2
  • TuningFitSettingsDialogKt.TuningFitSettingsDialog (cyclomatic 29) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27 — TuningFitSettingsDialogKt.TuningFitSettingsDialog has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • TuningFitSettingsDialogKt.TuningFitSettingsDialog (cyclomatic 29) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27 — TuningFitSettingsDialogKt.TuningFitSettingsDialog has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RackAdvancedControlsKt.RackAdvancedControls (cyclomatic 25) · ×2
  • RackAdvancedControlsKt.RackAdvancedControls (cyclomatic 25) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:24 — RackAdvancedControlsKt.RackAdvancedControls has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • RackAdvancedControlsKt.RackAdvancedControls (cyclomatic 25) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:24 — RackAdvancedControlsKt.RackAdvancedControls has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TuningProjectsScreenKt.TuningProjectEditor (cyclomatic 25) · ×2
  • TuningProjectsScreenKt.TuningProjectEditor (cyclomatic 25) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:330 — TuningProjectsScreenKt.TuningProjectEditor 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.
  • TuningProjectsScreenKt.TuningProjectEditor (cyclomatic 25) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:327 — TuningProjectsScreenKt.TuningProjectEditor has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ComparisonScreenKt.ComparisonScreen (cyclomatic 23) · ×2
  • ComparisonScreenKt.ComparisonScreen (cyclomatic 23) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:38 — ComparisonScreenKt.ComparisonScreen 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.
  • ComparisonScreenKt.ComparisonScreen (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:29 — ComparisonScreenKt.ComparisonScreen has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConvolutionLibraryScreenKt.ImpulseDetails (cyclomatic 23) · ×2
  • ConvolutionLibraryScreenKt.ImpulseDetails (cyclomatic 23) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:245 — ConvolutionLibraryScreenKt.ImpulseDetails has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • ConvolutionLibraryScreenKt.ImpulseDetails (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:229 — ConvolutionLibraryScreenKt.ImpulseDetails has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · YoutubeResolver.findMusicVideo (cyclomatic 22) · ×2
  • YoutubeResolver.findMusicVideo (cyclomatic 22) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:137 — YoutubeResolver.findMusicVideo 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.
  • YoutubeResolver.findMusicVideo (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:142 — YoutubeResolver.findMusicVideo has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingRackScreenKt.RackNodeEditor (cyclomatic 22) · ×2
  • ProcessingRackScreenKt.RackNodeEditor (cyclomatic 22) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:381 — ProcessingRackScreenKt.RackNodeEditor 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.
  • ProcessingRackScreenKt.RackNodeEditor (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:376 — ProcessingRackScreenKt.RackNodeEditor has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingRackScreenKt.RackBandDialog (cyclomatic 20) · ×2
  • ProcessingRackScreenKt.RackBandDialog (cyclomatic 20) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:507 — ProcessingRackScreenKt.RackBandDialog has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • ProcessingRackScreenKt.RackBandDialog (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:501 — ProcessingRackScreenKt.RackBandDialog has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · InsightsScreenKt.InsightsScreen (cyclomatic 20) · ×2
  • InsightsScreenKt.InsightsScreen (cyclomatic 20) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:83 — InsightsScreenKt.InsightsScreen has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • InsightsScreenKt.InsightsScreen (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:83 — InsightsScreenKt.InsightsScreen has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VideoFingerprintMatch.plan (cyclomatic 19) · ×2
  • VideoFingerprintMatch.plan (cyclomatic 19) app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:58 — VideoFingerprintMatch.plan 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.
  • VideoFingerprintMatch.plan (cyclomatic 19) desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt:57 — VideoFingerprintMatch.plan has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ImpulsePreparationDialogKt.ImpulsePreparationDialog (cyclomatic 18) · ×2
  • ImpulsePreparationDialogKt.ImpulsePreparationDialog (cyclomatic 18) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:33 — ImpulsePreparationDialogKt.ImpulsePreparationDialog has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • ImpulsePreparationDialogKt.ImpulsePreparationDialog (cyclomatic 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:33 — ImpulsePreparationDialogKt.ImpulsePreparationDialog has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RackEqResponseCardKt.RackEqResponseCard (cyclomatic 18) · ×2
  • RackEqResponseCardKt.RackEqResponseCard (cyclomatic 18) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:55 — RackEqResponseCardKt.RackEqResponseCard has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • RackEqResponseCardKt.RackEqResponseCard (cyclomatic 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:54 — RackEqResponseCardKt.RackEqResponseCard has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cyclomatic 18) · ×2
  • TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cyclomatic 18) app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:26 — TuningTargetLibraryDialogKt.TuningTargetLibraryDialog has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
  • TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cyclomatic 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:24 — TuningTargetLibraryDialogKt.TuningTargetLibraryDialog has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · AiDjControlsKt.setLine (cyclomatic 17) · ×2
  • AiDjControlsKt.setLine (cyclomatic 17) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:142 — AiDjControlsKt.setLine 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.
  • AiDjControlsKt.setLine (cyclomatic 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:144 — AiDjControlsKt.setLine has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VisualizerSettingsScreenKt.VisualizerSettingsScreen (cyclomatic 17) · ×2
  • VisualizerSettingsScreenKt.VisualizerSettingsScreen (cyclomatic 17) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:56 — VisualizerSettingsScreenKt.VisualizerSettingsScreen has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • VisualizerSettingsScreenKt.VisualizerSettingsScreen (cyclomatic 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:57 — VisualizerSettingsScreenKt.VisualizerSettingsScreen has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SonicEngine.buildAutoDj (cyclomatic 16) · ×2
  • SonicEngine.buildAutoDj (cyclomatic 16) app/src/main/java/com/aurora/music/data/SonicEngine.kt:198 — SonicEngine.buildAutoDj has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • SonicEngine.buildAutoDj (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:172 — SonicEngine.buildAutoDj has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · SignInScreenKt.CredentialsStep (cyclomatic 16) · ×2
  • SignInScreenKt.CredentialsStep (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:398 — SignInScreenKt.CredentialsStep has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • SignInScreenKt.CredentialsStep (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:419 — SignInScreenKt.CredentialsStep has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MixScreenKt.MixTimeline (cyclomatic 16) · ×2
  • MixScreenKt.MixTimeline (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:288 — MixScreenKt.MixTimeline has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • MixScreenKt.MixTimeline (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:287 — MixScreenKt.MixTimeline has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RadioScreenKt.RadioScreen (cyclomatic 16) · ×2
  • RadioScreenKt.RadioScreen (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:74 — RadioScreenKt.RadioScreen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • RadioScreenKt.RadioScreen (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:74 — RadioScreenKt.RadioScreen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cyclomatic 16) · ×2
  • OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:30 — OutputPresetBindingsScreenKt.OutputPresetBindingsScreen 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.
  • OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:29 — OutputPresetBindingsScreenKt.OutputPresetBindingsScreen has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PresetRulesScreenKt.PresetRulesScreen (cyclomatic 16) · ×2
  • PresetRulesScreenKt.PresetRulesScreen (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:37 — PresetRulesScreenKt.PresetRulesScreen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: PresetRulesScreenKt.currentCondition (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • PresetRulesScreenKt.PresetRulesScreen (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:36 — PresetRulesScreenKt.PresetRulesScreen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: PresetRulesScreenKt.currentCondition (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · TuningProjectsScreenKt.TuningApplyDialog (cyclomatic 16) · ×2
  • TuningProjectsScreenKt.TuningApplyDialog (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:454 — TuningProjectsScreenKt.TuningApplyDialog has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • TuningProjectsScreenKt.TuningApplyDialog (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:451 — TuningProjectsScreenKt.TuningApplyDialog has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ListItemsKt.SongRow (cognitive 97) · ×2
  • ListItemsKt.SongRow (cognitive 97) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:79 — ListItemsKt.SongRow has cognitive complexity 97 (threshold 15). Drivers by points: if/else 62 (88 pts), boolean chains 9 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ListItemsKt.SongRow (cognitive 97) desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:118 — ListItemsKt.SongRow has cognitive complexity 97 (threshold 15). Drivers by points: if/else 55 (83 pts), boolean chains 13, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PodcastClient.parseFeed (cognitive 79) · ×2
  • PodcastClient.parseFeed (cognitive 79) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77 — PodcastClient.parseFeed has cognitive complexity 79 (threshold 15). Drivers by points: if/else 18 (54 pts), boolean chains 16, match/switch 3 (8 pts), loops 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • PodcastClient.parseFeed (cognitive 79) desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:78 — PodcastClient.parseFeed has cognitive complexity 79 (threshold 15). Drivers by points: if/else 18 (54 pts), boolean chains 16, match/switch 3 (8 pts), loops 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TuningProjectsScreenKt.TuningProjectsScreen (cognitive 64) · ×2
  • TuningProjectsScreenKt.TuningProjectsScreen (cognitive 64) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45 — TuningProjectsScreenKt.TuningProjectsScreen has cognitive complexity 64 (threshold 15). Drivers by points: if/else 42 (43 pts), boolean chains 14, error handling 5, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • TuningProjectsScreenKt.TuningProjectsScreen (cognitive 64) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:42 — TuningProjectsScreenKt.TuningProjectsScreen has cognitive complexity 64 (threshold 15). Drivers by points: if/else 42 (43 pts), boolean chains 14, error handling 5, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SonicFeatures.analyzeSamples (cognitive 62) · ×2
  • SonicFeatures.analyzeSamples (cognitive 62) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:24 — SonicFeatures.analyzeSamples has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 17 (29 pts), boolean chains 2 (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.
  • SonicFeatures.analyzeSamples (cognitive 62) desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:24 — SonicFeatures.analyzeSamples has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 17 (29 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · EqEditorKt.EqCurve (cognitive 56) · ×2
  • EqEditorKt.EqCurve (cognitive 56) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:169 — EqEditorKt.EqCurve has cognitive complexity 56 (threshold 15). Drivers by points: if/else 39 (48 pts), boolean chains 4, loops 3, match/switch 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • EqEditorKt.EqCurve (cognitive 56) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:178 — EqEditorKt.EqCurve has cognitive complexity 56 (threshold 15). Drivers by points: if/else 39 (48 pts), boolean chains 4, loops 3, match/switch 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · RackAdvancedControlsKt.RackAdvancedControls (cognitive 38) · ×2
  • RackAdvancedControlsKt.RackAdvancedControls (cognitive 38) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:24 — RackAdvancedControlsKt.RackAdvancedControls has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (37 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • RackAdvancedControlsKt.RackAdvancedControls (cognitive 38) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:24 — RackAdvancedControlsKt.RackAdvancedControls has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (37 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · ProcessingRackScreenKt.RackNodeEditor (cognitive 37) · ×2
  • ProcessingRackScreenKt.RackNodeEditor (cognitive 37) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:381 — ProcessingRackScreenKt.RackNodeEditor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ProcessingRackScreenKt.RackNodeEditor (cognitive 37) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:376 — ProcessingRackScreenKt.RackNodeEditor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConvolutionLibraryScreenKt.ImpulseDetails (cognitive 36) · ×2
  • ConvolutionLibraryScreenKt.ImpulseDetails (cognitive 36) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:245 — ConvolutionLibraryScreenKt.ImpulseDetails has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 3, match/switch 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • ConvolutionLibraryScreenKt.ImpulseDetails (cognitive 36) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:229 — ConvolutionLibraryScreenKt.ImpulseDetails has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 3, match/switch 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · YoutubeResolver.findMusicVideo (cognitive 35) · ×2
  • YoutubeResolver.findMusicVideo (cognitive 35) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:137 — YoutubeResolver.findMusicVideo has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 9, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • YoutubeResolver.findMusicVideo (cognitive 35) desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:142 — YoutubeResolver.findMusicVideo has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 9, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TuningFitSettingsDialogKt.TuningFitSettingsDialog (cognitive 35) · ×2
  • TuningFitSettingsDialogKt.TuningFitSettingsDialog (cognitive 35) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27 — TuningFitSettingsDialogKt.TuningFitSettingsDialog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (27 pts), boolean chains 4, error handling 2, match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • TuningFitSettingsDialogKt.TuningFitSettingsDialog (cognitive 35) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27 — TuningFitSettingsDialogKt.TuningFitSettingsDialog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (27 pts), boolean chains 4, error handling 2, match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TuningProjectsScreenKt.TuningProjectEditor (cognitive 33) · ×2
  • TuningProjectsScreenKt.TuningProjectEditor (cognitive 33) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:330 — TuningProjectsScreenKt.TuningProjectEditor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 8 (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.
  • TuningProjectsScreenKt.TuningProjectEditor (cognitive 33) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:327 — TuningProjectsScreenKt.TuningProjectEditor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ProcessingRackScreenKt.RackBandDialog (cognitive 31) · ×2
  • ProcessingRackScreenKt.RackBandDialog (cognitive 31) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:507 — ProcessingRackScreenKt.RackBandDialog has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 5 (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.
  • ProcessingRackScreenKt.RackBandDialog (cognitive 31) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:501 — ProcessingRackScreenKt.RackBandDialog has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · InsightsScreenKt.InsightsScreen (cognitive 31) · ×2
  • InsightsScreenKt.InsightsScreen (cognitive 31) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:83 — InsightsScreenKt.InsightsScreen has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 3, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • InsightsScreenKt.InsightsScreen (cognitive 31) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:83 — InsightsScreenKt.InsightsScreen has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 3, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoFingerprintMatch.plan (cognitive 28) · ×2
  • VideoFingerprintMatch.plan (cognitive 28) app/src/main/java/com/aurora/music/playback/VideoAudioAligner.kt:58 — VideoFingerprintMatch.plan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 7, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • VideoFingerprintMatch.plan (cognitive 28) desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoAudioAligner.kt:57 — VideoFingerprintMatch.plan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 7, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackEqResponseCardKt.RackEqResponseCard (cognitive 27) · ×2
  • RackEqResponseCardKt.RackEqResponseCard (cognitive 27) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:55 — RackEqResponseCardKt.RackEqResponseCard has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 4 (7 pts), error handling 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • RackEqResponseCardKt.RackEqResponseCard (cognitive 27) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:54 — RackEqResponseCardKt.RackEqResponseCard has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 4 (7 pts), error handling 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TuningCurveChartKt.TuningCurveChart (cognitive 27) · ×2
  • TuningCurveChartKt.TuningCurveChart (cognitive 27) app/src/main/java/com/aurora/music/ui/screens/settings/TuningCurveChart.kt:28 — TuningCurveChartKt.TuningCurveChart has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • TuningCurveChartKt.TuningCurveChart (cognitive 27) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningCurveChart.kt:28 — TuningCurveChartKt.TuningCurveChart has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ConcertControlsKt.ConcertVenueMap (cognitive 26) · ×2
  • ConcertControlsKt.ConcertVenueMap (cognitive 26) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:249 — ConcertControlsKt.ConcertVenueMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ConcertControlsKt.ConcertVenueMap (cognitive 26) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:250 — ConcertControlsKt.ConcertVenueMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MixScreenKt.MixTimeline (cognitive 26) · ×2
  • MixScreenKt.MixTimeline (cognitive 26) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:288 — MixScreenKt.MixTimeline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22 (23 pts), loops 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • MixScreenKt.MixTimeline (cognitive 26) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:287 — MixScreenKt.MixTimeline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22 (23 pts), loops 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · RadioScreenKt.RadioScreen (cognitive 24) · ×2
  • RadioScreenKt.RadioScreen (cognitive 24) app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:74 — RadioScreenKt.RadioScreen has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • RadioScreenKt.RadioScreen (cognitive 24) desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:74 — RadioScreenKt.RadioScreen has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SonicEngine.buildAutoDj (cognitive 22) · ×2
  • SonicEngine.buildAutoDj (cognitive 22) app/src/main/java/com/aurora/music/data/SonicEngine.kt:198 — SonicEngine.buildAutoDj has cognitive complexity 22 (threshold 15). Drivers by points: loops 9 (12 pts), if/else 5 (9 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • SonicEngine.buildAutoDj (cognitive 22) desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:172 — SonicEngine.buildAutoDj has cognitive complexity 22 (threshold 15). Drivers by points: loops 9 (12 pts), if/else 5 (9 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · AiDjControlsKt.setLine (cognitive 22) · ×2
  • AiDjControlsKt.setLine (cognitive 22) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:142 — AiDjControlsKt.setLine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). 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.
  • AiDjControlsKt.setLine (cognitive 22) desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:144 — AiDjControlsKt.setLine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cognitive 21) · ×2
  • OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cognitive 21) app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:30 — OutputPresetBindingsScreenKt.OutputPresetBindingsScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • OutputPresetBindingsScreenKt.OutputPresetBindingsScreen (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:29 — OutputPresetBindingsScreenKt.OutputPresetBindingsScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackSubchainsDialogKt.RackSubchainsDialog (cognitive 21) · ×2
  • RackSubchainsDialogKt.RackSubchainsDialog (cognitive 21) app/src/main/java/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:18 — RackSubchainsDialogKt.RackSubchainsDialog has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 2 (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.
  • RackSubchainsDialogKt.RackSubchainsDialog (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackSubchainsDialog.kt:18 — RackSubchainsDialogKt.RackSubchainsDialog has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SignalPathScreenKt.SignalPathScreen (cognitive 21) · ×2
  • SignalPathScreenKt.SignalPathScreen (cognitive 21) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:63 — SignalPathScreenKt.SignalPathScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • SignalPathScreenKt.SignalPathScreen (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:68 — SignalPathScreenKt.SignalPathScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RecapInboxKt.RecapNotification (cognitive 21) · ×2
  • RecapInboxKt.RecapNotification (cognitive 21) app/src/main/java/com/aurora/music/ui/screens/stats/RecapInbox.kt:140 — RecapInboxKt.RecapNotification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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.
  • RecapInboxKt.RecapNotification (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapInbox.kt:144 — RecapInboxKt.RecapNotification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ImpulsePreparationDialogKt.ImpulsePreparationDialog (cognitive 20) · ×2
  • ImpulsePreparationDialogKt.ImpulsePreparationDialog (cognitive 20) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:33 — ImpulsePreparationDialogKt.ImpulsePreparationDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, error handling 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • ImpulsePreparationDialogKt.ImpulsePreparationDialog (cognitive 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:33 — ImpulsePreparationDialogKt.ImpulsePreparationDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, error handling 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TuningProjectsScreenKt.TuningApplyDialog (cognitive 20) · ×2
  • TuningProjectsScreenKt.TuningApplyDialog (cognitive 20) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:454 — TuningProjectsScreenKt.TuningApplyDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • TuningProjectsScreenKt.TuningApplyDialog (cognitive 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:451 — TuningProjectsScreenKt.TuningApplyDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cognitive 19) · ×2
  • TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cognitive 19) app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:26 — TuningTargetLibraryDialogKt.TuningTargetLibraryDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 2, match/switch 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.
  • TuningTargetLibraryDialogKt.TuningTargetLibraryDialog (cognitive 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:24 — TuningTargetLibraryDialogKt.TuningTargetLibraryDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CurlFlowField.update (cognitive 19) · ×2
  • CurlFlowField.update (cognitive 19) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:602 — CurlFlowField.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (4 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.
  • CurlFlowField.update (cognitive 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:602 — CurlFlowField.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (4 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.
D2 · Cognitive Complexity · Cymatic.update (cognitive 19) · ×2
  • Cymatic.update (cognitive 19) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:727 — Cymatic.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • Cymatic.update (cognitive 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:727 — Cymatic.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SignInScreenKt.CredentialsStep (cognitive 18) · ×2
  • SignInScreenKt.CredentialsStep (cognitive 18) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:398 — SignInScreenKt.CredentialsStep has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • SignInScreenKt.CredentialsStep (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:419 — SignInScreenKt.CredentialsStep has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · IntegrationsSettingsScreenKt.LastfmAccountControls (cognitive 18) · ×2
  • IntegrationsSettingsScreenKt.LastfmAccountControls (cognitive 18) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:199 — IntegrationsSettingsScreenKt.LastfmAccountControls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 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.
  • IntegrationsSettingsScreenKt.LastfmAccountControls (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:266 — IntegrationsSettingsScreenKt.LastfmAccountControls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 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.
D2 · Cognitive Complexity · VisualizerRenderersKt.drawSuperformulaBloom (cognitive 18) · ×2
  • VisualizerRenderersKt.drawSuperformulaBloom (cognitive 18) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:773 — VisualizerRenderersKt.drawSuperformulaBloom has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • VisualizerRenderersKt.drawSuperformulaBloom (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:773 — VisualizerRenderersKt.drawSuperformulaBloom has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ThemeStylesKt.auroraBackdrop (cognitive 18) · ×2
  • ThemeStylesKt.auroraBackdrop (cognitive 18) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:171 — ThemeStylesKt.auroraBackdrop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ThemeStylesKt.auroraBackdrop (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:181 — ThemeStylesKt.auroraBackdrop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrackSortMenuKt.TrackSortButton (cognitive 17) · ×2
  • TrackSortMenuKt.TrackSortButton (cognitive 17) app/src/main/java/com/aurora/music/ui/components/TrackSortMenu.kt:45 — TrackSortMenuKt.TrackSortButton has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • TrackSortMenuKt.TrackSortButton (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackSortMenu.kt:47 — TrackSortMenuKt.TrackSortButton has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LibraryScreenKt.CollectionMenu (cognitive 17) · ×2
  • LibraryScreenKt.CollectionMenu (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1068 — LibraryScreenKt.CollectionMenu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • LibraryScreenKt.CollectionMenu (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1400 — LibraryScreenKt.CollectionMenu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MixScreenKt.TransitionPreview (cognitive 17) · ×2
  • MixScreenKt.TransitionPreview (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:426 — MixScreenKt.TransitionPreview has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • MixScreenKt.TransitionPreview (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:425 — MixScreenKt.TransitionPreview has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PodcastsScreenKt.PodcastsScreen (cognitive 17) · ×2
  • PodcastsScreenKt.PodcastsScreen (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:65 — PodcastsScreenKt.PodcastsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • PodcastsScreenKt.PodcastsScreen (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:65 — PodcastsScreenKt.PodcastsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PresetRulesScreenKt.PresetRulesScreen (cognitive 17) · ×2
  • PresetRulesScreenKt.PresetRulesScreen (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:37 — PresetRulesScreenKt.PresetRulesScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 6, error handling 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • PresetRulesScreenKt.PresetRulesScreen (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:36 — PresetRulesScreenKt.PresetRulesScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 6, error handling 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · VisualizerSettingsScreenKt.VisualizerSettingsScreen (cognitive 17) · ×2
  • VisualizerSettingsScreenKt.VisualizerSettingsScreen (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:56 — VisualizerSettingsScreenKt.VisualizerSettingsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, match/switch 4, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • VisualizerSettingsScreenKt.VisualizerSettingsScreen (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:57 — VisualizerSettingsScreenKt.VisualizerSettingsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, match/switch 4, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · MixScreenKt.ClipEditor (cognitive 16) · ×2
  • MixScreenKt.ClipEditor (cognitive 16) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:348 — MixScreenKt.ClipEditor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), 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.
  • MixScreenKt.ClipEditor (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:347 — MixScreenKt.ClipEditor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), 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.
D2 · Cognitive Complexity · PodcastDetailScreenKt.PodcastDetailScreen (cognitive 16) · ×2
  • PodcastDetailScreenKt.PodcastDetailScreen (cognitive 16) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:58 — PodcastDetailScreenKt.PodcastDetailScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15 (16 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • PodcastDetailScreenKt.PodcastDetailScreen (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:58 — PodcastDetailScreenKt.PodcastDetailScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15 (16 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TuningProjectsScreenKt.fitInputProblem (cognitive 16) · ×2
  • TuningProjectsScreenKt.fitInputProblem (cognitive 16) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:512 — TuningProjectsScreenKt.fitInputProblem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 4). 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.
  • TuningProjectsScreenKt.fitInputProblem (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:509 — TuningProjectsScreenKt.fitInputProblem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 4). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · ThemeKt.AuroraTheme (cognitive 16) · ×2
  • ThemeKt.AuroraTheme (cognitive 16) app/src/main/java/com/aurora/music/ui/theme/Theme.kt:147 — ThemeKt.AuroraTheme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • ThemeKt.AuroraTheme (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/theme/Theme.kt:187 — ThemeKt.AuroraTheme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 2, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · WhatsNewTourKt.SplashPage (cognitive 16) · ×2
  • WhatsNewTourKt.SplashPage (cognitive 16) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:302 — WhatsNewTourKt.SplashPage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • WhatsNewTourKt.SplashPage (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:294 — WhatsNewTourKt.SplashPage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Near-duplicate member pair (115 shared lines) · ×2
  • Near-duplicate member pair (115 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:46 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:46-214 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:50-198 — These two members are variants of one another: 115 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 (115 shared lines) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:51 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:51-183 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:52-181 — These two members are variants of one another: 115 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (43 shared lines) · ×2
  • Near-duplicate member pair (43 shared lines) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:65 — app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:65-143 | desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:61-143 — These two members are variants of one another: 43 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 (43 shared lines) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:415 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:415-565 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:263-363 — These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (39 shared lines) · ×2
  • Near-duplicate member pair (39 shared lines) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:137 — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:137-186 | desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt:142-191 — These two members are variants of one another: 39 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 (39 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:108 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:108-204 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:105-194 — These two members are variants of one another: 39 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (25 shared lines) · ×2
  • Near-duplicate member pair (25 shared lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:53 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:53-111 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:55-110 — These two members are variants of one another: 25 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 (25 shared lines) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:136 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:136-167 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:151-182 — These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (5 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:61 — app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:61-110 | app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:133-158 | app/src/main/java/com/aurora/music/ui/screens/profile/ProfileScreen.kt:62-159 | app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:108-331 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:204-230 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' 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 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:86 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:86-226 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:238-307 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:310-350 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:98-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:175-213 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' 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 5 times.
D4 · Code Duplication · Edited copy of a member (91 corresponding lines) · ×2
  • Edited copy of a member (91 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:34 — app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:34-124 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:34-124 — These two members are one piece of code written twice and then edited apart: 91 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 (91 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:45 — app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:45-135 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:119-209 — These two members are one piece of code written twice and then edited apart: 91 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 (53 corresponding lines) · ×2
  • Edited copy of a member (53 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:607 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:607-659 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:512-564 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (53 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:45 — app/src/main/java/com/aurora/music/ui/screens/settings/BackupScreen.kt:45-99 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/BackupScreen.kt:41-93 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (64 corresponding lines) · ×2
  • Edited copy of a member (64 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:26 — app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:26-89 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:24-87 — 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.
  • Edited copy of a member (64 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:23 — app/src/main/java/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:23-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AudioCacheSettings.kt:21-85 — 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 (47 corresponding lines) · ×2
  • Edited copy of a member (47 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:146 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:146-192 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:145-191 — 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.
  • Edited copy of a member (47 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ConnectSheet.kt:58 — app/src/main/java/com/aurora/music/ui/screens/player/ConnectSheet.kt:58-104 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:59-107 — 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 (30 corresponding lines) · ×2
  • Edited copy of a member (30 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:349 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:349-378 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:344-373 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (30 corresponding lines) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:140 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:140-169 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:133-163 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (40 corresponding lines) · ×2
  • Edited copy of a member (40 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:101 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:101-140 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:103-142 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (40 corresponding lines) app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:25 — app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:25-64 | desktop/src/main/kotlin/com/aurora/music/ui/components/GuestLikesPrompt.kt:25-64 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×2
  • Edited copy of a member (35 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1534 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1534-1568 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/TrackComments.kt:114-150 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:30 — app/src/main/java/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:30-64 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/WhatsNewSettingsScreen.kt:29-63 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (38 corresponding lines) · ×2
  • Edited copy of a member (38 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:633 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:633-670 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:726-763 — 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.
  • Edited copy of a member (38 corresponding lines) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1967 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1967-2015 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1799-1836 — 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 (33 corresponding lines) · ×2
  • Edited copy of a member (33 corresponding lines) app/src/main/java/com/aurora/music/playback/PlaybackListeningDetails.kt:55 — app/src/main/java/com/aurora/music/playback/PlaybackListeningDetails.kt:55-92 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopListeningDetails.kt:41-73 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:87 — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:87-119 | desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt:78-111 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 5+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 5+ corresponding lines) core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:156 — core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:156-161 | core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:169-174 | core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:226-230 — 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.
  • Edited copies of one member (3 members, 5+ corresponding lines) core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:214 — core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:214-218 | core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:220-224 | core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:391-397 — 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 copies of one member (4 members, 9+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 9+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:106 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:106-114 | app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:117-125 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:199-207 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:210-218 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 9+ corresponding lines) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:222 — app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:222-231 | app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:233-243 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:485-493 | desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:495-503 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 2+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 2+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:74 — app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:74-75 | core/src/main/kotlin/com/aurora/music/data/Autoplay.kt:22-23 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:69-70 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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, 2+ corresponding lines) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:25 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:25-27 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:38-40 | desktop/src/main/kotlin/com/aurora/music/mix/MixStore.kt:19-20 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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, 1+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 1+ corresponding lines) core/src/main/kotlin/com/aurora/music/data/ProcessingPreset.kt:87 — core/src/main/kotlin/com/aurora/music/data/ProcessingPreset.kt:87-91 | core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:202-202 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:310-310 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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, 1+ corresponding lines) REDACTED:121 — REDACTED:121-121 | core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererPairing.kt:80-81 | desktop/src/main/kotlin/com/aurora/music/desktop/player/RulePublisher.kt:81-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (102 lines × 2) · ×2
  • Duplicated block (102 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:32 — app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:32-133 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:31-132 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.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. Note first that the copies are not typed on the same thing: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (102 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:184 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:184-285 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:193-294 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:184` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (62 lines × 2) · ×2
  • Duplicated block (62 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:44 — app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:44-105 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:41-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:44` 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 (62 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:79 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:79-140 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:80-141 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (61 lines × 2) · ×2
  • Duplicated block (61 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:142 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:142-202 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:184-244 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:142` 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 (61 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:91 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:91-151 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:90-150 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:91` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (78 lines × 2) · ×2
  • Duplicated block (78 lines × 2) app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:77 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:77-154 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:79-156 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/aidj/AiPlaylistScreen.kt:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (78 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningCurveChart.kt:32 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningCurveChart.kt:32-109 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningCurveChart.kt:32-109 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningCurveChart.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningCurveChart.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningCurveChart.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.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×2
  • Duplicated block (33 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:90 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:90-122 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:87-119 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (33 lines × 2) app/src/main/java/com/aurora/music/data/SonicEngine.kt:214 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:214-246 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:188-220 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/data/SonicEngine.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.
D4 · Code Duplication · Duplicated block (50 lines × 2) · ×2
  • Duplicated block (50 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:116 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:116-165 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:104-153 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:115` calls `Note`, `appString` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:103` 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 (50 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:56 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:56-105 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:53-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:56` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (49 lines × 2) · ×2
  • Duplicated block (49 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:39 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:39-87 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:38-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.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. Note first that the copies are not typed on the same thing: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (49 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:160 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:160-208 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:157-205 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:160` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (60 lines × 2) · ×2
  • Duplicated block (60 lines × 2) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:108 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:108-167 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:105-164 — before extracting anything, compare `app/src/main/java/com/aurora/music/mix/StemSeparator.kt` and `desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/mix/StemSeparator.kt:108` 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 (60 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:56 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:56-115 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:55-114 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (43 lines × 2) · ×2
  • Duplicated block (43 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1070 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1070-1112 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1402-1444 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (43 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:116 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:116-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:104-146 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:116` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×2
  • Duplicated block (16–17 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1375 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1375-1391 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1359-1374 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (16–17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:453 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:453-469 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:474-489 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:453` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (88 lines × 2) · ×2
  • Duplicated block (88 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91-178 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:92-179 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:91` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:90` 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 (88 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:104 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:104-191 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:104-191 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:104` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (37 lines × 2) · ×2
  • Duplicated block (37 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:151 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:151-187 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:135-171 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:151` 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 (37 lines × 2) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:242 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:242-278 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:242-278 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×2
  • Duplicated block (8 lines × 4) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:152 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:152-159 | app/src/main/java/com/aurora/music/ui/components/Waveform.kt:166-173 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:150-157 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:164-171 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:152` 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 × 4) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:176 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:176-183 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:203-210 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:177-184 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:204-211 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×2
  • Duplicated block (8 lines × 3) app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:127 — app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:127-134 | app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:624-631 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:468-475 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:127` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 3) core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:139 — core/src/main/kotlin/com/aurora/music/playback/engine/ConcertRenderer.kt:139-146 | core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:239-246 | core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:399-406 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (39 lines × 2) · ×2
  • Duplicated block (39 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:427 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:427-465 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:426-464 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (39 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:119 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:119-157 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:128-166 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (46 lines × 2) · ×2
  • Duplicated block (46 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:120 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:120-165 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt:119-164 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqResponseCard.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (46 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:151 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:151-196 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:150-195 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:151` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×2
  • Duplicated block (6–7 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:207 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:207-212 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:374-380 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:374` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6–7 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:932 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:932-938 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:904-909 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:932` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×2
  • Duplicated block (6 lines × 3) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351 — app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351-357 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:678-683 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:1034-1039 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/ListItems.kt:351` 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 × 3) app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:133 — app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:133-138 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:789-794 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:129-134 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:133` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×2
  • Duplicated block (5 lines × 4) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1116 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1116-1120 | app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:190-194 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1074-1079 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:179-183 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1116` 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 × 4) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:357 — core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:357-361 | core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:235-239 | core/src/main/kotlin/com/aurora/music/data/ProcessingRack.kt:207-211 | core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:156-160 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:357` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×2
  • Duplicated block (5 lines × 3) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:221 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:221-225 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:751-755 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:852-856 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:221` 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 × 3) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:222 — desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:222-226 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:380-384 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:446-450 — 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 `desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:222` 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.
D6 · Cohesion (LCOM4) · Low cohesion · ×2
  • Low cohesion: PlayHistoryStore (LCOM4 5) core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:39 — PlayHistoryStore'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: ProcessingEditor (LCOM4 4) core/src/main/kotlin/com/aurora/music/data/settings/ProcessingEditor.kt:24 — ProcessingEditor'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.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×2
  • Outbound HTTP without resilience app/src/main/java/com/aurora/music/mix/StemSeparator.kt:73 — `.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 desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:70 — `.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.
D1 · Cyclomatic Complexity · AuroraAppKt.AuroraApp (cyclomatic 211) · ×1
  • AuroraAppKt.AuroraApp (cyclomatic 211) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154 — AuroraAppKt.AuroraApp has cyclomatic complexity 211 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AuroraAppKt.Shell (cyclomatic 209) · ×1
  • AuroraAppKt.Shell (cyclomatic 209) desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:264 — AuroraAppKt.Shell has cyclomatic complexity 209 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlaybackAudioOutput.reportLocal (cyclomatic 167) · ×1
  • PlaybackAudioOutput.reportLocal (cyclomatic 167) app/src/main/java/com/aurora/music/playback/PlaybackAudioOutput.kt:399 — PlaybackAudioOutput.reportLocal has cyclomatic complexity 167 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerScreenKt.PlayerScreen (cyclomatic 128) · ×1
  • PlayerScreenKt.PlayerScreen (cyclomatic 128) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:168 — PlayerScreenKt.PlayerScreen has cyclomatic complexity 128 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DetailScreenKt.DetailScreen (cyclomatic 105) · ×1
  • DetailScreenKt.DetailScreen (cyclomatic 105) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:124 — DetailScreenKt.DetailScreen has cyclomatic complexity 105 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerScreenKt.PlayerScreen (cyclomatic 102) · ×1
  • PlayerScreenKt.PlayerScreen (cyclomatic 102) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:172 — PlayerScreenKt.PlayerScreen has cyclomatic complexity 102 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DetailScreenKt.DetailScreen (cyclomatic 88) · ×1
  • DetailScreenKt.DetailScreen (cyclomatic 88) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:88 — DetailScreenKt.DetailScreen has cyclomatic complexity 88 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · UsbAudioDescriptors.parse (cyclomatic 85) · ×1
  • UsbAudioDescriptors.parse (cyclomatic 85) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDescriptors.kt:105 — UsbAudioDescriptors.parse has cyclomatic complexity 85 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VoiceAligner.place (cyclomatic 68) · ×1
  • VoiceAligner.place (cyclomatic 68) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:185 — VoiceAligner.place has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProductionSerialRack.compile (cyclomatic 61) · ×1
  • ProductionSerialRack.compile (cyclomatic 61) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionSerialRack.kt:179 — ProductionSerialRack.compile has cyclomatic complexity 61 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · MainKt.main (cyclomatic 57) · ×1
  • MainKt.main (cyclomatic 57) desktop/src/main/kotlin/com/aurora/music/desktop/Main.kt:76 — MainKt.main has cyclomatic complexity 57 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SignInScreenKt.SignInScreen (cyclomatic 54) · ×1
  • SignInScreenKt.SignInScreen (cyclomatic 54) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:105 — SignInScreenKt.SignInScreen has cyclomatic complexity 54 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · ListItemsKt.SongRow (cyclomatic 53) · ×1
  • ListItemsKt.SongRow (cyclomatic 53) desktop/src/main/kotlin/com/aurora/music/ui/components/ListItems.kt:118 — ListItemsKt.SongRow has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ListItemsKt.SongRow (cyclomatic 50) · ×1
  • ListItemsKt.SongRow (cyclomatic 50) app/src/main/java/com/aurora/music/ui/components/ListItems.kt:79 — ListItemsKt.SongRow has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingRackScreenKt.ProcessingRackScreen (cyclomatic 48) · ×1
  • ProcessingRackScreenKt.ProcessingRackScreen (cyclomatic 48) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:49 — ProcessingRackScreenKt.ProcessingRackScreen has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConcertAcoustics.room (cyclomatic 47) · ×1
  • ConcertAcoustics.room (cyclomatic 47) core/src/main/kotlin/com/aurora/music/playback/engine/ConcertAcoustics.kt:64 — ConcertAcoustics.room has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MixScreenKt.MixScreen (cyclomatic 47) · ×1
  • MixScreenKt.MixScreen (cyclomatic 47) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MixScreenKt.MixScreen has cyclomatic complexity 47 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LyricsScreenKt.ImmersiveLyrics (cyclomatic 46) · ×1
  • LyricsScreenKt.ImmersiveLyrics (cyclomatic 46) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:414 — LyricsScreenKt.ImmersiveLyrics has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MixScreenKt.MixScreen (cyclomatic 46) · ×1
  • MixScreenKt.MixScreen (cyclomatic 46) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MixScreenKt.MixScreen has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DjPicker.rate (cyclomatic 46) · ×1
  • DjPicker.rate (cyclomatic 46) core/src/main/kotlin/com/aurora/music/ai/DjPicker.kt:76 — DjPicker.rate has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingRackScreenKt.ProcessingRackScreen (cyclomatic 45) · ×1
  • ProcessingRackScreenKt.ProcessingRackScreen (cyclomatic 45) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:53 — ProcessingRackScreenKt.ProcessingRackScreen has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PresetRuleEngine.evaluate (cyclomatic 43) · ×1
  • PresetRuleEngine.evaluate (cyclomatic 43) core/src/main/kotlin/com/aurora/music/data/rules/PresetRuleEngine.kt:36 — PresetRuleEngine.evaluate has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · DjKeywords.parse (cyclomatic 42) · ×1
  • DjKeywords.parse (cyclomatic 42) core/src/main/kotlin/com/aurora/music/ai/DjKeywords.kt:65 — DjKeywords.parse has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlaybackService.serviceListener (cyclomatic 41) · ×1
  • PlaybackService.serviceListener (cyclomatic 41) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:184 — PlaybackService.serviceListener has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MeasurementTextImporter.parsePoints (cyclomatic 41) · ×1
  • MeasurementTextImporter.parsePoints (cyclomatic 41) core/src/main/kotlin/com/aurora/music/data/tuning/MeasurementTextImporter.kt:26 — MeasurementTextImporter.parsePoints has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SettingsScreenKt.SettingsScreen (cyclomatic 39) · ×1
  • SettingsScreenKt.SettingsScreen (cyclomatic 39) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:84 — SettingsScreenKt.SettingsScreen has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · TrackSwipeActionsKt.TrackSwipeActions (cyclomatic 38) · ×1
  • TrackSwipeActionsKt.TrackSwipeActions (cyclomatic 38) app/src/main/java/com/aurora/music/ui/components/TrackSwipeActions.kt:51 — TrackSwipeActionsKt.TrackSwipeActions has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SignInScreenKt.SignInScreen (cyclomatic 38) · ×1
  • SignInScreenKt.SignInScreen (cyclomatic 38) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:96 — SignInScreenKt.SignInScreen has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · HomeScreenKt.HomeScreen (cyclomatic 38) · ×1
  • HomeScreenKt.HomeScreen (cyclomatic 38) app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:72 — HomeScreenKt.HomeScreen has cyclomatic complexity 38 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DesktopConnectHost.execute (cyclomatic 38) · ×1
  • DesktopConnectHost.execute (cyclomatic 38) desktop/src/main/kotlin/com/aurora/music/desktop/connect/DesktopConnectHost.kt:40 — DesktopConnectHost.execute has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShortcutsKt.macShortcut (cyclomatic 38) · ×1
  • ShortcutsKt.macShortcut (cyclomatic 38) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:70 — ShortcutsKt.macShortcut has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · LocalLibrary.scan (cyclomatic 37) · ×1
  • LocalLibrary.scan (cyclomatic 37) app/src/main/java/com/aurora/music/data/LocalLibrary.kt:241 — LocalLibrary.scan has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SettingsScreenKt.SettingsScreen (cyclomatic 37) · ×1
  • SettingsScreenKt.SettingsScreen (cyclomatic 37) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:74 — SettingsScreenKt.SettingsScreen has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SignalPathKt.buildSignalPath (cyclomatic 37) · ×1
  • SignalPathKt.buildSignalPath (cyclomatic 37) core/src/main/kotlin/com/aurora/music/data/SignalPath.kt:138 — SignalPathKt.buildSignalPath has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ReverbKernel.process (cyclomatic 37) · ×1
  • ReverbKernel.process (cyclomatic 37) core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:147 — ReverbKernel.process has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShortcutsKt.pcShortcut (cyclomatic 37) · ×1
  • ShortcutsKt.pcShortcut (cyclomatic 37) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:112 — ShortcutsKt.pcShortcut has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · PlaybackDockKt.PlaybackDock (cyclomatic 37) · ×1
  • PlaybackDockKt.PlaybackDock (cyclomatic 37) desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:114 — PlaybackDockKt.PlaybackDock has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MixPlayer.tick (cyclomatic 36) · ×1
  • MixPlayer.tick (cyclomatic 36) app/src/main/java/com/aurora/music/mix/MixPlayer.kt:225 — MixPlayer.tick has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryScreenKt.LibraryScreen (cyclomatic 36) · ×1
  • LibraryScreenKt.LibraryScreen (cyclomatic 36) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:157 — LibraryScreenKt.LibraryScreen has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SourcesSettingsScreenKt.SourcesSettingsScreen (cyclomatic 36) · ×1
  • SourcesSettingsScreenKt.SourcesSettingsScreen (cyclomatic 36) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:83 — SourcesSettingsScreenKt.SourcesSettingsScreen has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cyclomatic 35) · ×1
  • ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cyclomatic 35) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:46 — ConvolutionLibraryScreenKt.ConvolutionLibraryScreen has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · NetworkCompressedDecoder.decode (cyclomatic 34) · ×1
  • NetworkCompressedDecoder.decode (cyclomatic 34) app/src/main/java/com/aurora/music/playback/network/audio/NetworkCompressedDecoder.kt:29 — NetworkCompressedDecoder.decode has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CrowdNoise.events (cyclomatic 34) · ×1
  • CrowdNoise.events (cyclomatic 34) core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:174 — CrowdNoise.events has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ImpulseResponse.loadWavResult (cyclomatic 33) · ×1
  • ImpulseResponse.loadWavResult (cyclomatic 33) core/src/main/kotlin/com/aurora/music/playback/ImpulseResponse.kt:66 — ImpulseResponse.loadWavResult has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · LyricsScreenKt.ImmersiveLyrics (cyclomatic 33) · ×1
  • LyricsScreenKt.ImmersiveLyrics (cyclomatic 33) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:263 — LyricsScreenKt.ImmersiveLyrics has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · QueueScreenKt.QueueContent (cyclomatic 32) · ×1
  • QueueScreenKt.QueueContent (cyclomatic 32) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:133 — QueueScreenKt.QueueContent has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AppUpdateCardKt.AppUpdateCardContent (cyclomatic 32) · ×1
  • AppUpdateCardKt.AppUpdateCardContent (cyclomatic 32) app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:94 — AppUpdateCardKt.AppUpdateCardContent has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · EndpointServer.handle (cyclomatic 32) · ×1
  • EndpointServer.handle (cyclomatic 32) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/EndpointServer.kt:125 — EndpointServer.handle has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · VideoPlayer.run (cyclomatic 32) · ×1
  • VideoPlayer.run (cyclomatic 32) desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoPlayer.kt:93 — VideoPlayer.run has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DjEngine.nextSet (cyclomatic 31) · ×1
  • DjEngine.nextSet (cyclomatic 31) core/src/main/kotlin/com/aurora/music/ai/DjEngine.kt:183 — DjEngine.nextSet has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · RackEqTextCodec.parse (cyclomatic 31) · ×1
  • RackEqTextCodec.parse (cyclomatic 31) core/src/main/kotlin/com/aurora/music/data/RackEqTextCodec.kt:18 — RackEqTextCodec.parse has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ArtworkRepository.open (cyclomatic 31) · ×1
  • ArtworkRepository.open (cyclomatic 31) core/src/main/kotlin/com/aurora/music/data/artwork/ArtworkRepository.kt:53 — ArtworkRepository.open has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cyclomatic 31) · ×1
  • ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cyclomatic 31) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:50 — ConvolutionLibraryScreenKt.ConvolutionLibraryScreen has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DsdExtractor.readDffChunk (cyclomatic 30) · ×1
  • DsdExtractor.readDffChunk (cyclomatic 30) app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:136 — DsdExtractor.readDffChunk has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · SongSourcesMenuKt.SourcesMenu (cyclomatic 30) · ×1
  • SongSourcesMenuKt.SourcesMenu (cyclomatic 30) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:90 — SongSourcesMenuKt.SourcesMenu has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VisualizerController.analyseLoop (cyclomatic 30) · ×1
  • VisualizerController.analyseLoop (cyclomatic 30) core/src/main/kotlin/com/aurora/music/playback/VisualizerController.kt:155 — VisualizerController.analyseLoop has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConnectJson.command (cyclomatic 30) · ×1
  • ConnectJson.command (cyclomatic 30) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/ConnectProtocol.kt:139 — ConnectJson.command has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SongSourcesMenuKt.SongSourcesMenu (cyclomatic 30) · ×1
  • SongSourcesMenuKt.SongSourcesMenu (cyclomatic 30) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:81 — SongSourcesMenuKt.SongSourcesMenu has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlaybackFades.maybeBeginXfade (cyclomatic 29) · ×1
  • PlaybackFades.maybeBeginXfade (cyclomatic 29) app/src/main/java/com/aurora/music/playback/PlaybackFades.kt:87 — PlaybackFades.maybeBeginXfade has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NetworkPlaybackBridge.executeAuthorized (cyclomatic 29) · ×1
  • NetworkPlaybackBridge.executeAuthorized (cyclomatic 29) app/src/main/java/com/aurora/music/playback/network/NetworkPlaybackBridge.kt:134 — NetworkPlaybackBridge.executeAuthorized has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TrackPlaylistsSheetKt.TrackPlaylistsSheet (cyclomatic 29) · ×1
  • TrackPlaylistsSheetKt.TrackPlaylistsSheet (cyclomatic 29) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:45 — TrackPlaylistsSheetKt.TrackPlaylistsSheet has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SmartPlaylistEngine.matches (cyclomatic 29) · ×1
  • SmartPlaylistEngine.matches (cyclomatic 29) core/src/main/kotlin/com/aurora/music/data/SmartPlaylists.kt:60 — SmartPlaylistEngine.matches has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · AutoMixPlanner.plan (cyclomatic 29) · ×1
  • AutoMixPlanner.plan (cyclomatic 29) core/src/main/kotlin/com/aurora/music/mix/AutoMixPlanner.kt:8 — AutoMixPlanner.plan has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RendererJson.command (cyclomatic 29) · ×1
  • RendererJson.command (cyclomatic 29) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererJson.kt:15 — RendererJson.command has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EngineSignalPathKt.signalPath (cyclomatic 29) · ×1
  • EngineSignalPathKt.signalPath (cyclomatic 29) desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSignalPath.kt:19 — EngineSignalPathKt.signalPath has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AppUpdateCardKt.AppUpdateCardContent (cyclomatic 29) · ×1
  • AppUpdateCardKt.AppUpdateCardContent (cyclomatic 29) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:45 — AppUpdateCardKt.AppUpdateCardContent has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · ListeningStatsScreenKt.ListeningStatsScreen (cyclomatic 29) · ×1
  • ListeningStatsScreenKt.ListeningStatsScreen (cyclomatic 29) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:75 — ListeningStatsScreenKt.ListeningStatsScreen has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UsbAudioSink.handleBuffer (cyclomatic 29) · ×1
  • UsbAudioSink.handleBuffer (cyclomatic 29) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:414 — UsbAudioSink.handleBuffer has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlaybackListeningDetails.context (cyclomatic 28) · ×1
  • PlaybackListeningDetails.context (cyclomatic 28) app/src/main/java/com/aurora/music/playback/PlaybackListeningDetails.kt:55 — PlaybackListeningDetails.context has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AndroidConnectHost.apply (cyclomatic 28) · ×1
  • AndroidConnectHost.apply (cyclomatic 28) app/src/main/java/com/aurora/music/playback/network/AndroidConnectHost.kt:105 — AndroidConnectHost.apply 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.
D1 · Cyclomatic Complexity · DirectNetworkPreparer.inspect (cyclomatic 28) · ×1
  • DirectNetworkPreparer.inspect (cyclomatic 28) app/src/main/java/com/aurora/music/playback/network/audio/DirectNetworkPreparer.kt:75 — DirectNetworkPreparer.inspect has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · TypeKt.auroraTypography (cyclomatic 28) · ×1
  • TypeKt.auroraTypography (cyclomatic 28) app/src/main/java/com/aurora/music/ui/theme/Type.kt:63 — TypeKt.auroraTypography has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · LyricTimingKt.syllables (cyclomatic 28) · ×1
  • LyricTimingKt.syllables (cyclomatic 28) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:361 — LyricTimingKt.syllables 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.
D1 · Cyclomatic Complexity · RackHeadroomAnalyzer.analyze (cyclomatic 28) · ×1
  • RackHeadroomAnalyzer.analyze (cyclomatic 28) core/src/main/kotlin/com/aurora/music/playback/engine/RackHeadroom.kt:19 — RackHeadroomAnalyzer.analyze 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.
D1 · Cyclomatic Complexity · TrackPlaylistsSheetKt.TrackPlaylistsSheet (cyclomatic 28) · ×1
  • TrackPlaylistsSheetKt.TrackPlaylistsSheet (cyclomatic 28) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:48 — TrackPlaylistsSheetKt.TrackPlaylistsSheet 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.
D1 · Cyclomatic Complexity · ProcessedNetworkRenderer.decode (cyclomatic 27) · ×1
  • ProcessedNetworkRenderer.decode (cyclomatic 27) app/src/main/java/com/aurora/music/playback/network/audio/ProcessedNetworkRenderer.kt:116 — ProcessedNetworkRenderer.decode has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EqualizerScreenKt.AutoEqPanel (cyclomatic 27) · ×1
  • EqualizerScreenKt.AutoEqPanel (cyclomatic 27) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:341 — EqualizerScreenKt.AutoEqPanel has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlaybackService.customCommand (cyclomatic 26) · ×1
  • PlaybackService.customCommand (cyclomatic 26) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:571 — PlaybackService.customCommand has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DragToDismissKt.DragToDismiss (cyclomatic 26) · ×1
  • DragToDismissKt.DragToDismiss (cyclomatic 26) app/src/main/java/com/aurora/music/ui/screens/player/DragToDismiss.kt:39 — DragToDismissKt.DragToDismiss has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BackupArchive.decodeJson (cyclomatic 26) · ×1
  • BackupArchive.decodeJson (cyclomatic 26) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:161 — BackupArchive.decodeJson has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · RackHeadroomAnalyzer.graphBound (cyclomatic 26) · ×1
  • RackHeadroomAnalyzer.graphBound (cyclomatic 26) core/src/main/kotlin/com/aurora/music/playback/engine/RackHeadroom.kt:107 — RackHeadroomAnalyzer.graphBound has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComparisonRenderer.decode (cyclomatic 25) · ×1
  • ComparisonRenderer.decode (cyclomatic 25) app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:95 — ComparisonRenderer.decode has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DesktopListeningDetails.context (cyclomatic 25) · ×1
  • DesktopListeningDetails.context (cyclomatic 25) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopListeningDetails.kt:41 — DesktopListeningDetails.context has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ProcessingPresetsScreenKt.ProcessingPresetsScreen (cyclomatic 24) · ×1
  • ProcessingPresetsScreenKt.ProcessingPresetsScreen (cyclomatic 24) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:70 — ProcessingPresetsScreenKt.ProcessingPresetsScreen has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RackEqTextDialogsKt.RackEqImportDialog (cyclomatic 24) · ×1
  • RackEqTextDialogsKt.RackEqImportDialog (cyclomatic 24) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:47 — RackEqTextDialogsKt.RackEqImportDialog has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cyclomatic 24) · ×1
  • TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cyclomatic 24) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:36 — TuningMeasurementDialogsKt.TuningMeasurementImportDialog has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CueSheets.parse (cyclomatic 24) · ×1
  • CueSheets.parse (cyclomatic 24) core/src/main/kotlin/com/aurora/music/data/CueSheet.kt:58 — CueSheets.parse has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TypeKt.auroraTypography (cyclomatic 24) · ×1
  • TypeKt.auroraTypography (cyclomatic 24) desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt:28 — TypeKt.auroraTypography has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · SearchScreenKt.SearchScreen (cyclomatic 23) · ×1
  • SearchScreenKt.SearchScreen (cyclomatic 23) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:91 — SearchScreenKt.SearchScreen has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerViewModel.syncFromController (cyclomatic 23) · ×1
  • PlayerViewModel.syncFromController (cyclomatic 23) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:669 — PlayerViewModel.syncFromController has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · YouTubeMusicPlaybackTracker.report (cyclomatic 23) · ×1
  • YouTubeMusicPlaybackTracker.report (cyclomatic 23) core/src/main/kotlin/com/aurora/music/data/YouTubeMusicPlaybackTracker.kt:33 — YouTubeMusicPlaybackTracker.report has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MergeMatcher.playbackCandidates (cyclomatic 23) · ×1
  • MergeMatcher.playbackCandidates (cyclomatic 23) core/src/main/kotlin/com/aurora/music/data/merged/MergeMatcher.kt:42 — MergeMatcher.playbackCandidates has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · BoundedHttpServer.writeResponse (cyclomatic 23) · ×1
  • BoundedHttpServer.writeResponse (cyclomatic 23) core/src/main/kotlin/com/aurora/music/playback/network/BoundedHttpServer.kt:164 — BoundedHttpServer.writeResponse has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MixDeck.render (cyclomatic 23) · ×1
  • MixDeck.render (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/MixDeck.kt:186 — MixDeck.render has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HomeScreenKt.HomeScreen (cyclomatic 23) · ×1
  • HomeScreenKt.HomeScreen (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:113 — HomeScreenKt.HomeScreen has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SearchScreenKt.Results (cyclomatic 23) · ×1
  • SearchScreenKt.Results (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:320 — SearchScreenKt.Results has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cyclomatic 23) · ×1
  • TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cyclomatic 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:30 — TuningMeasurementDialogsKt.TuningMeasurementImportDialog has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HapticOutput.tap (cyclomatic 22) · ×1
  • HapticOutput.tap (cyclomatic 22) app/src/main/java/com/aurora/music/playback/MusicHaptics.kt:179 — HapticOutput.tap has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · PlaybackService.updateSignalPathSnapshot (cyclomatic 22) · ×1
  • PlaybackService.updateSignalPathSnapshot (cyclomatic 22) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:489 — PlaybackService.updateSignalPathSnapshot has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RendererMediaCache.receive (cyclomatic 22) · ×1
  • RendererMediaCache.receive (cyclomatic 22) app/src/main/java/com/aurora/music/playback/network/RendererMediaCache.kt:27 — RendererMediaCache.receive has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileLyrics.fromSylt (cyclomatic 22) · ×1
  • FileLyrics.fromSylt (cyclomatic 22) core/src/main/kotlin/com/aurora/music/data/FileLyrics.kt:70 — FileLyrics.fromSylt has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LyricsRepository.lookup (cyclomatic 22) · ×1
  • LyricsRepository.lookup (cyclomatic 22) core/src/main/kotlin/com/aurora/music/data/LyricsRepository.kt:56 — LyricsRepository.lookup has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingPresetBundle.validateImpulseResponse (cyclomatic 22) · ×1
  • ProcessingPresetBundle.validateImpulseResponse (cyclomatic 22) core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:269 — ProcessingPresetBundle.validateImpulseResponse has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · PcmLevelMeter.observe (cyclomatic 22) · ×1
  • PcmLevelMeter.observe (cyclomatic 22) core/src/main/kotlin/com/aurora/music/playback/PcmLevelMeter.kt:64 — PcmLevelMeter.observe has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BoundedHttpServer.readRequest (cyclomatic 22) · ×1
  • BoundedHttpServer.readRequest (cyclomatic 22) core/src/main/kotlin/com/aurora/music/playback/network/BoundedHttpServer.kt:114 — BoundedHttpServer.readRequest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CaptionFrame.onFrame (cyclomatic 22) · ×1
  • CaptionFrame.onFrame (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/desktop/platform/CaptionFrame.kt:48 — CaptionFrame.onFrame has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WaveformKt.Waveform (cyclomatic 22) · ×1
  • WaveformKt.Waveform (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:42 — WaveformKt.Waveform has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LibraryScreenKt.LibraryScreen (cyclomatic 22) · ×1
  • LibraryScreenKt.LibraryScreen (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:229 — LibraryScreenKt.LibraryScreen has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · VisualizerScreenKt.VisualizerScreen (cyclomatic 22) · ×1
  • VisualizerScreenKt.VisualizerScreen (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:76 — VisualizerScreenKt.VisualizerScreen has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ThemeStylesKt.auroraPanel (cyclomatic 22) · ×1
  • ThemeStylesKt.auroraPanel (cyclomatic 22) desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:133 — ThemeStylesKt.auroraPanel has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NetworkQueuePlayer.load (cyclomatic 21) · ×1
  • NetworkQueuePlayer.load (cyclomatic 21) app/src/main/java/com/aurora/music/playback/network/NetworkQueuePlayer.kt:156 — NetworkQueuePlayer.load has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · YouTubeMusicStepKt.YouTubeMusicBrowser (cyclomatic 21) · ×1
  • YouTubeMusicStepKt.YouTubeMusicBrowser (cyclomatic 21) app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:71 — YouTubeMusicStepKt.YouTubeMusicBrowser has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ImportPlaylistSheetKt.ImportPlaylistSheet (cyclomatic 21) · ×1
  • ImportPlaylistSheetKt.ImportPlaylistSheet (cyclomatic 21) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:74 — ImportPlaylistSheetKt.ImportPlaylistSheet has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LyricsScreenKt.LyricsScreen (cyclomatic 21) · ×1
  • LyricsScreenKt.LyricsScreen (cyclomatic 21) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:79 — LyricsScreenKt.LyricsScreen has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · VisualizerScreenKt.VisualizerScreen (cyclomatic 21) · ×1
  • VisualizerScreenKt.VisualizerScreen (cyclomatic 21) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:75 — VisualizerScreenKt.VisualizerScreen has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AutoEqController.apply (cyclomatic 21) · ×1
  • AutoEqController.apply (cyclomatic 21) core/src/main/kotlin/com/aurora/music/data/AutoEqController.kt:53 — AutoEqController.apply has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlaylistLinks.parse (cyclomatic 21) · ×1
  • PlaylistLinks.parse (cyclomatic 21) core/src/main/kotlin/com/aurora/music/data/PlaylistLinks.kt:21 — PlaylistLinks.parse has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · DynamicsEffectKernel.process (cyclomatic 21) · ×1
  • DynamicsEffectKernel.process (cyclomatic 21) core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:22 — DynamicsEffectKernel.process has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NetworkWaveSource.inspect (cyclomatic 21) · ×1
  • NetworkWaveSource.inspect (cyclomatic 21) core/src/main/kotlin/com/aurora/music/playback/network/audio/NetworkWaveSource.kt:19 — NetworkWaveSource.inspect has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · DesktopMixPlayer.run (cyclomatic 21) · ×1
  • DesktopMixPlayer.run (cyclomatic 21) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/DesktopMixPlayer.kt:111 — DesktopMixPlayer.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DesktopPlayer.sync (cyclomatic 21) · ×1
  • DesktopPlayer.sync (cyclomatic 21) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:313 — DesktopPlayer.sync has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ProfileImages.import (cyclomatic 20) · ×1
  • ProfileImages.import (cyclomatic 20) app/src/main/java/com/aurora/music/data/ProfileImages.kt:17 — ProfileImages.import has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YoutubeResolver.resolvePlayback (cyclomatic 20) · ×1
  • YoutubeResolver.resolvePlayback (cyclomatic 20) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:211 — YoutubeResolver.resolvePlayback has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · WaveformKt.Waveform (cyclomatic 20) · ×1
  • WaveformKt.Waveform (cyclomatic 20) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:42 — WaveformKt.Waveform has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ListeningStatsScreenKt.ListeningStatsScreen (cyclomatic 20) · ×1
  • ListeningStatsScreenKt.ListeningStatsScreen (cyclomatic 20) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:70 — ListeningStatsScreenKt.ListeningStatsScreen has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ListeningMath.estimate (cyclomatic 20) · ×1
  • ListeningMath.estimate (cyclomatic 20) core/src/main/kotlin/com/aurora/music/data/listening/ListeningLevels.kt:101 — ListeningMath.estimate has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PresetSettingsStore.transitionPresetRule (cyclomatic 20) · ×1
  • PresetSettingsStore.transitionPresetRule (cyclomatic 20) core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:162 — PresetSettingsStore.transitionPresetRule has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrecisionDspCoeffBuilder.cascade (cyclomatic 20) · ×1
  • PrecisionDspCoeffBuilder.cascade (cyclomatic 20) core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionDspCoefficients.kt:126 — PrecisionDspCoeffBuilder.cascade has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YouTubeDownloader.remux (cyclomatic 20) · ×1
  • YouTubeDownloader.remux (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YouTubeDownloader.kt:170 — YouTubeDownloader.remux has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MixAnalyzer.decode (cyclomatic 20) · ×1
  • MixAnalyzer.decode (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:66 — MixAnalyzer.decode has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ImportPlaylistDialogKt.ImportPlaylistDialog (cyclomatic 20) · ×1
  • ImportPlaylistDialogKt.ImportPlaylistDialog (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:59 — ImportPlaylistDialogKt.ImportPlaylistDialog has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · QueueScreenKt.QueueContent (cyclomatic 20) · ×1
  • QueueScreenKt.QueueContent (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:91 — QueueScreenKt.QueueContent has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RackEqTextDialogsKt.RackEqImportDialog (cyclomatic 20) · ×1
  • RackEqTextDialogsKt.RackEqImportDialog (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:45 — RackEqTextDialogsKt.RackEqImportDialog has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SourcesSettingsScreenKt.SourcesSettingsScreen (cyclomatic 20) · ×1
  • SourcesSettingsScreenKt.SourcesSettingsScreen (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:80 — SourcesSettingsScreenKt.SourcesSettingsScreen has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LibraryViewModel.load (cyclomatic 20) · ×1
  • LibraryViewModel.load (cyclomatic 20) desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:148 — LibraryViewModel.load has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · UsbStreamingThread.run (cyclomatic 20) · ×1
  • UsbStreamingThread.run (cyclomatic 20) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbStreamingThread.kt:68 — UsbStreamingThread.run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ExtensionManager.loadTracks (cyclomatic 19) · ×1
  • ExtensionManager.loadTracks (cyclomatic 19) app/src/main/java/com/aurora/music/extensions/ExtensionManager.kt:183 — ExtensionManager.loadTracks has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · PlaybackService.startAudioObservers (cyclomatic 19) · ×1
  • PlaybackService.startAudioObservers (cyclomatic 19) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:280 — PlaybackService.startAudioObservers has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AccountsScreenKt.AccountsScreen (cyclomatic 19) · ×1
  • AccountsScreenKt.AccountsScreen (cyclomatic 19) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:55 — AccountsScreenKt.AccountsScreen has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ComparisonViewModel.start (cyclomatic 19) · ×1
  • ComparisonViewModel.start (cyclomatic 19) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:64 — ComparisonViewModel.start has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DjPicker.pick (cyclomatic 19) · ×1
  • DjPicker.pick (cyclomatic 19) core/src/main/kotlin/com/aurora/music/ai/DjPicker.kt:123 — DjPicker.pick has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AppleMusicClient.request (cyclomatic 19) · ×1
  • AppleMusicClient.request (cyclomatic 19) core/src/main/kotlin/com/aurora/music/data/remote/AppleMusicClient.kt:128 — AppleMusicClient.request has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · PrecisionBlockProcessor.queueInput (cyclomatic 19) · ×1
  • PrecisionBlockProcessor.queueInput (cyclomatic 19) core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:202 — PrecisionBlockProcessor.queueInput has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DsdHeaders.dffSoundProperties (cyclomatic 19) · ×1
  • DsdHeaders.dffSoundProperties (cyclomatic 19) core/src/main/kotlin/com/aurora/music/playback/dsd/DsdFormat.kt:77 — DsdHeaders.dffSoundProperties has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Download.run (cyclomatic 19) · ×1
  • Download.run (cyclomatic 19) desktop/src/main/kotlin/com/aurora/music/desktop/audio/AudioCache.kt:303 — Download.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProcessingPresetsScreenKt.ProcessingPresetsScreen (cyclomatic 19) · ×1
  • ProcessingPresetsScreenKt.ProcessingPresetsScreen (cyclomatic 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:69 — ProcessingPresetsScreenKt.ProcessingPresetsScreen has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlaybackService.completeNetworkOutputSwitch (cyclomatic 18) · ×1
  • PlaybackService.completeNetworkOutputSwitch (cyclomatic 18) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:766 — PlaybackService.completeNetworkOutputSwitch has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TagEditScreenKt.TagEditScreen (cyclomatic 18) · ×1
  • TagEditScreenKt.TagEditScreen (cyclomatic 18) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:60 — TagEditScreenKt.TagEditScreen has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryScreenKt.buildRows (cyclomatic 18) · ×1
  • LibraryScreenKt.buildRows (cyclomatic 18) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:922 — LibraryScreenKt.buildRows has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DjMode.onQueueChanged (cyclomatic 18) · ×1
  • DjMode.onQueueChanged (cyclomatic 18) core/src/main/kotlin/com/aurora/music/ai/DjMode.kt:227 — DjMode.onQueueChanged has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · VoiceAligner.window (cyclomatic 18) · ×1
  • VoiceAligner.window (cyclomatic 18) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:127 — VoiceAligner.window has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YouTubeMusicBackend.detail (cyclomatic 18) · ×1
  • YouTubeMusicBackend.detail (cyclomatic 18) core/src/main/kotlin/com/aurora/music/data/YouTubeMusicBackend.kt:142 — YouTubeMusicBackend.detail has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MediaSearchRequest.parse (cyclomatic 18) · ×1
  • MediaSearchRequest.parse (cyclomatic 18) core/src/main/kotlin/com/aurora/music/playback/MediaSearchRequest.kt:45 — MediaSearchRequest.parse has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · PlaybackReportTracker.update (cyclomatic 18) · ×1
  • PlaybackReportTracker.update (cyclomatic 18) core/src/main/kotlin/com/aurora/music/playback/PlaybackReportTracker.kt:32 — PlaybackReportTracker.update has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrecisionBlockProcessor.takeOutput (cyclomatic 18) · ×1
  • PrecisionBlockProcessor.takeOutput (cyclomatic 18) core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:242 — PrecisionBlockProcessor.takeOutput has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DsdPcmDecoder.push (cyclomatic 18) · ×1
  • DsdPcmDecoder.push (cyclomatic 18) core/src/main/kotlin/com/aurora/music/playback/dsd/DsdPcmDecoder.kt:28 — DsdPcmDecoder.push has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CrowdNoise.next (cyclomatic 18) · ×1
  • CrowdNoise.next (cyclomatic 18) core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:105 — CrowdNoise.next has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LibraryScreenKt.SongsTab (cyclomatic 18) · ×1
  • LibraryScreenKt.SongsTab (cyclomatic 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:806 — LibraryScreenKt.SongsTab has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EqualizerScreenKt.AutoEqPanel (cyclomatic 18) · ×1
  • EqualizerScreenKt.AutoEqPanel (cyclomatic 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329 — EqualizerScreenKt.AutoEqPanel has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · UsbAudioFormat.transportUnsupportedReason (cyclomatic 18) · ×1
  • UsbAudioFormat.transportUnsupportedReason (cyclomatic 18) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDescriptors.kt:49 — UsbAudioFormat.transportUnsupportedReason has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · AudioDecoder.decodeTrack (cyclomatic 17) · ×1
  • AudioDecoder.decodeTrack (cyclomatic 17) app/src/main/java/com/aurora/music/data/AudioDecoder.kt:48 — AudioDecoder.decodeTrack has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AudioCache.factory (cyclomatic 17) · ×1
  • AudioCache.factory (cyclomatic 17) app/src/main/java/com/aurora/music/data/cache/AudioCache.kt:98 — AudioCache.factory has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MixAnalyzer.decode (cyclomatic 17) · ×1
  • MixAnalyzer.decode (cyclomatic 17) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:52 — MixAnalyzer.decode has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · NetworkPlaybackBridge.enableReceiver (cyclomatic 17) · ×1
  • NetworkPlaybackBridge.enableReceiver (cyclomatic 17) app/src/main/java/com/aurora/music/playback/network/NetworkPlaybackBridge.kt:50 — NetworkPlaybackBridge.enableReceiver has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlaybackDockKt.PlaybackDock (cyclomatic 17) · ×1
  • PlaybackDockKt.PlaybackDock (cyclomatic 17) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:74 — PlaybackDockKt.PlaybackDock has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryScreenKt.SongsTab (cyclomatic 17) · ×1
  • LibraryScreenKt.SongsTab (cyclomatic 17) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:704 — LibraryScreenKt.SongsTab has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PermissionsScreenKt.PermissionsScreen (cyclomatic 17) · ×1
  • PermissionsScreenKt.PermissionsScreen (cyclomatic 17) app/src/main/java/com/aurora/music/ui/screens/settings/PermissionsScreen.kt:68 — PermissionsScreenKt.PermissionsScreen has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerViewModel.persistQueue (cyclomatic 17) · ×1
  • PlayerViewModel.persistQueue (cyclomatic 17) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:485 — PlayerViewModel.persistQueue has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SoundCloudClient.attempt (cyclomatic 17) · ×1
  • SoundCloudClient.attempt (cyclomatic 17) core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:112 — SoundCloudClient.attempt has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TuningProjectCodec.validateFit (cyclomatic 17) · ×1
  • TuningProjectCodec.validateFit (cyclomatic 17) core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:150 — TuningProjectCodec.validateFit has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · PrecisionEffectsKernel.process (cyclomatic 17) · ×1
  • PrecisionEffectsKernel.process (cyclomatic 17) core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionEffectsKernel.kt:37 — PrecisionEffectsKernel.process has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MediaControls.attach (cyclomatic 17) · ×1
  • MediaControls.attach (cyclomatic 17) desktop/src/main/kotlin/com/aurora/music/desktop/player/MediaControls.kt:40 — MediaControls.attach has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AppearanceScreenKt.AppearanceScreen (cyclomatic 17) · ×1
  • AppearanceScreenKt.AppearanceScreen (cyclomatic 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:78 — AppearanceScreenKt.AppearanceScreen has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · UsbAudioSink.getCurrentPositionUs (cyclomatic 17) · ×1
  • UsbAudioSink.getCurrentPositionUs (cyclomatic 17) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:552 — UsbAudioSink.getCurrentPositionUs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MatchPickerKt.MatchPickerSheet (cyclomatic 16) · ×1
  • MatchPickerKt.MatchPickerSheet (cyclomatic 16) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:65 — MatchPickerKt.MatchPickerSheet has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MiniPlayerKt.MiniPlayer (cyclomatic 16) · ×1
  • MiniPlayerKt.MiniPlayer (cyclomatic 16) app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:60 — MiniPlayerKt.MiniPlayer has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SearchScreenKt.Results (cyclomatic 16) · ×1
  • SearchScreenKt.Results (cyclomatic 16) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:266 — SearchScreenKt.Results has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ThemeStylesKt.styleColorScheme (cyclomatic 16) · ×1
  • ThemeStylesKt.styleColorScheme (cyclomatic 16) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:73 — ThemeStylesKt.styleColorScheme has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ParamBandCodec.read (cyclomatic 16) · ×1
  • ParamBandCodec.read (cyclomatic 16) core/src/main/kotlin/com/aurora/music/data/ParametricFilter.kt:82 — ParamBandCodec.read has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · PlaylistMatcher.score (cyclomatic 16) · ×1
  • PlaylistMatcher.score (cyclomatic 16) core/src/main/kotlin/com/aurora/music/data/PlaylistImport.kt:110 — PlaylistMatcher.score has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · YouTubeMusicParser.results (cyclomatic 16) · ×1
  • YouTubeMusicParser.results (cyclomatic 16) core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:77 — YouTubeMusicParser.results has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProductionRackProcessor.blendOutput (cyclomatic 16) · ×1
  • ProductionRackProcessor.blendOutput (cyclomatic 16) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionRackProcessor.kt:219 — ProductionRackProcessor.blendOutput has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ScopedMediaServer.handle (cyclomatic 16) · ×1
  • ScopedMediaServer.handle (cyclomatic 16) core/src/main/kotlin/com/aurora/music/playback/network/ScopedMediaServer.kt:77 — ScopedMediaServer.handle has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DesktopPlaybackEngine.pump (cyclomatic 16) · ×1
  • DesktopPlaybackEngine.pump (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:879 — DesktopPlaybackEngine.pump has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MatchPickerKt.MatchPickerDialog (cyclomatic 16) · ×1
  • MatchPickerKt.MatchPickerDialog (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:61 — MatchPickerKt.MatchPickerDialog has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryScreenKt.QuickTileCard (cyclomatic 16) · ×1
  • LibraryScreenKt.QuickTileCard (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:735 — LibraryScreenKt.QuickTileCard has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryScreenKt.LibCard (cyclomatic 16) · ×1
  • LibraryScreenKt.LibCard (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1328 — LibraryScreenKt.LibCard has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · QueueScreenKt.QueueTrackRow (cyclomatic 16) · ×1
  • QueueScreenKt.QueueTrackRow (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:291 — QueueScreenKt.QueueTrackRow has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AccountsScreenKt.AccountRow (cyclomatic 16) · ×1
  • AccountsScreenKt.AccountRow (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:149 — AccountsScreenKt.AccountRow has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cyclomatic 16) · ×1
  • AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AudioOutputSettingsScreen.kt:72 — AudioOutputSettingsScreenKt.AudioOutputSettingsScreen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ComparisonViewModel.start (cyclomatic 16) · ×1
  • ComparisonViewModel.start (cyclomatic 16) desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:49 — ComparisonViewModel.start has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SftpDataSource.open (cyclomatic 16) · ×1
  • SftpDataSource.open (cyclomatic 16) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:45 — SftpDataSource.open has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · UsbAudioSink.configureUsbBitPerfect (cyclomatic 16) · ×1
  • UsbAudioSink.configureUsbBitPerfect (cyclomatic 16) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:740 — UsbAudioSink.configureUsbBitPerfect has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D16 · Bus Factor · bus factor 1 · ×1
  • bus factor 1 — one contributor carries this repository — 3 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history — 81% of the 423 commit(s) sampled — so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately — have a second contributor review or pair on them — and write down the parts only one person can currently change.
D2 · Cognitive Complexity · AuroraAppKt.AuroraApp (cognitive 278) · ×1
  • AuroraAppKt.AuroraApp (cognitive 278) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154 — AuroraAppKt.AuroraApp has cognitive complexity 278 (threshold 15). Drivers by points: if/else 189 (218 pts), boolean chains 50, match/switch 8 (10 pts) (nesting depth added 31). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AuroraAppKt.Shell (cognitive 262) · ×1
  • AuroraAppKt.Shell (cognitive 262) desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:264 — AuroraAppKt.Shell has cognitive complexity 262 (threshold 15). Drivers by points: if/else 179 (206 pts), boolean chains 48, match/switch 6 (7 pts), loops 1 (nesting depth added 28). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlaybackAudioOutput.reportLocal (cognitive 233) · ×1
  • PlaybackAudioOutput.reportLocal (cognitive 233) app/src/main/java/com/aurora/music/playback/PlaybackAudioOutput.kt:399 — PlaybackAudioOutput.reportLocal has cognitive complexity 233 (threshold 15). Drivers by points: if/else 134 (169 pts), boolean chains 59, match/switch 4 (5 pts) (nesting depth added 36). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerScreenKt.PlayerScreen (cognitive 225) · ×1
  • PlayerScreenKt.PlayerScreen (cognitive 225) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:168 — PlayerScreenKt.PlayerScreen has cognitive complexity 225 (threshold 15). Drivers by points: if/else 150 (199 pts), boolean chains 24, match/switch 2 (nesting depth added 49). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DetailScreenKt.DetailScreen (cognitive 184) · ×1
  • DetailScreenKt.DetailScreen (cognitive 184) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:124 — DetailScreenKt.DetailScreen has cognitive complexity 184 (threshold 15). Drivers by points: if/else 119 (157 pts), boolean chains 24, match/switch 3 (nesting depth added 38). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerScreenKt.PlayerScreen (cognitive 177) · ×1
  • PlayerScreenKt.PlayerScreen (cognitive 177) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:172 — PlayerScreenKt.PlayerScreen has cognitive complexity 177 (threshold 15). Drivers by points: if/else 124 (155 pts), boolean chains 21, match/switch 1 (nesting depth added 31). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · UsbAudioDescriptors.parse (cognitive 167) · ×1
  • UsbAudioDescriptors.parse (cognitive 167) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDescriptors.kt:105 — UsbAudioDescriptors.parse has cognitive complexity 167 (threshold 15). Drivers by points: if/else 59 (138 pts), boolean chains 25, match/switch 2 (3 pts), loops 1 (nesting depth added 80). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · DetailScreenKt.DetailScreen (cognitive 166) · ×1
  • DetailScreenKt.DetailScreen (cognitive 166) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:88 — DetailScreenKt.DetailScreen has cognitive complexity 166 (threshold 15). Drivers by points: if/else 113 (149 pts), boolean chains 17 (nesting depth added 36). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · VoiceAligner.place (cognitive 119) · ×1
  • VoiceAligner.place (cognitive 119) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:185 — VoiceAligner.place has cognitive complexity 119 (threshold 15). Drivers by points: if/else 48 (75 pts), loops 16 (27 pts), boolean chains 15, match/switch 2 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConcertAcoustics.room (cognitive 108) · ×1
  • ConcertAcoustics.room (cognitive 108) core/src/main/kotlin/com/aurora/music/playback/engine/ConcertAcoustics.kt:64 — ConcertAcoustics.room has cognitive complexity 108 (threshold 15). Drivers by points: if/else 50 (83 pts), loops 11 (18 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProcessingRackScreenKt.ProcessingRackScreen (cognitive 95) · ×1
  • ProcessingRackScreenKt.ProcessingRackScreen (cognitive 95) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:49 — ProcessingRackScreenKt.ProcessingRackScreen has cognitive complexity 95 (threshold 15). Drivers by points: if/else 52 (76 pts), boolean chains 12, error handling 2 (4 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · ProcessingRackScreenKt.ProcessingRackScreen (cognitive 90) · ×1
  • ProcessingRackScreenKt.ProcessingRackScreen (cognitive 90) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:53 — ProcessingRackScreenKt.ProcessingRackScreen has cognitive complexity 90 (threshold 15). Drivers by points: if/else 50 (75 pts), boolean chains 10, loops 2 (3 pts), error handling 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ReverbKernel.process (cognitive 79) · ×1
  • ReverbKernel.process (cognitive 79) core/src/main/kotlin/com/aurora/music/playback/engine/ReverbKernel.kt:147 — ReverbKernel.process has cognitive complexity 79 (threshold 15). Drivers by points: if/else 29 (50 pts), loops 11 (26 pts), boolean chains 3 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MixScreenKt.MixScreen (cognitive 77) · ×1
  • MixScreenKt.MixScreen (cognitive 77) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MixScreenKt.MixScreen has cognitive complexity 77 (threshold 15). Drivers by points: if/else 52 (66 pts), boolean chains 11 (nesting depth added 14). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MixScreenKt.MixScreen (cognitive 75) · ×1
  • MixScreenKt.MixScreen (cognitive 75) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:48 — MixScreenKt.MixScreen has cognitive complexity 75 (threshold 15). Drivers by points: if/else 50 (64 pts), boolean chains 11 (nesting depth added 14). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · VisualizerController.analyseLoop (cognitive 71) · ×1
  • VisualizerController.analyseLoop (cognitive 71) core/src/main/kotlin/com/aurora/music/playback/VisualizerController.kt:155 — VisualizerController.analyseLoop has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (49 pts), loops 8 (17 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LocalLibrary.scan (cognitive 69) · ×1
  • LocalLibrary.scan (cognitive 69) app/src/main/java/com/aurora/music/data/LocalLibrary.kt:241 — LocalLibrary.scan has cognitive complexity 69 (threshold 15). Drivers by points: if/else 41 (58 pts), boolean chains 7, loops 3 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProductionSerialRack.compile (cognitive 68) · ×1
  • ProductionSerialRack.compile (cognitive 68) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionSerialRack.kt:179 — ProductionSerialRack.compile has cognitive complexity 68 (threshold 15). Drivers by points: if/else 33 (38 pts), boolean chains 27, match/switch 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MixDeck.render (cognitive 66) · ×1
  • MixDeck.render (cognitive 66) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/MixDeck.kt:186 — MixDeck.render has cognitive complexity 66 (threshold 15). Drivers by points: if/else 17 (53 pts), loops 5 (10 pts), boolean chains 3 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · LyricsScreenKt.ImmersiveLyrics (cognitive 65) · ×1
  • LyricsScreenKt.ImmersiveLyrics (cognitive 65) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:414 — LyricsScreenKt.ImmersiveLyrics has cognitive complexity 65 (threshold 15). Drivers by points: if/else 45 (49 pts), boolean chains 14, match/switch 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.
D2 · Cognitive Complexity · MainKt.main (cognitive 65) · ×1
  • MainKt.main (cognitive 65) desktop/src/main/kotlin/com/aurora/music/desktop/Main.kt:76 — MainKt.main has cognitive complexity 65 (threshold 15). Drivers by points: if/else 29 (35 pts), boolean chains 26, loops 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlaybackDockKt.PlaybackDock (cognitive 65) · ×1
  • PlaybackDockKt.PlaybackDock (cognitive 65) desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:114 — PlaybackDockKt.PlaybackDock has cognitive complexity 65 (threshold 15). Drivers by points: if/else 53 (62 pts), boolean chains 2, match/switch 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DjPicker.rate (cognitive 63) · ×1
  • DjPicker.rate (cognitive 63) core/src/main/kotlin/com/aurora/music/ai/DjPicker.kt:76 — DjPicker.rate has cognitive complexity 63 (threshold 15). Drivers by points: if/else 31 (45 pts), boolean chains 12, match/switch 4 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UsbAudioSink.handleBuffer (cognitive 63) · ×1
  • UsbAudioSink.handleBuffer (cognitive 63) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:414 — UsbAudioSink.handleBuffer has cognitive complexity 63 (threshold 15). Drivers by points: if/else 24 (56 pts), boolean chains 7 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · SignalPathKt.buildSignalPath (cognitive 62) · ×1
  • SignalPathKt.buildSignalPath (cognitive 62) core/src/main/kotlin/com/aurora/music/data/SignalPath.kt:138 — SignalPathKt.buildSignalPath has cognitive complexity 62 (threshold 15). Drivers by points: if/else 47 (56 pts), boolean chains 6 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · HomeScreenKt.HomeScreen (cognitive 61) · ×1
  • HomeScreenKt.HomeScreen (cognitive 61) app/src/main/java/com/aurora/music/ui/screens/home/HomeScreen.kt:72 — HomeScreenKt.HomeScreen has cognitive complexity 61 (threshold 15). Drivers by points: if/else 37 (49 pts), boolean chains 12 (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ListeningStatsScreenKt.ListeningStatsScreen (cognitive 61) · ×1
  • ListeningStatsScreenKt.ListeningStatsScreen (cognitive 61) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:75 — ListeningStatsScreenKt.ListeningStatsScreen has cognitive complexity 61 (threshold 15). Drivers by points: if/else 40 (59 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComparisonRenderer.decode (cognitive 59) · ×1
  • ComparisonRenderer.decode (cognitive 59) app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:95 — ComparisonRenderer.decode has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (45 pts), boolean chains 6, loops 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · TrackSwipeActionsKt.TrackSwipeActions (cognitive 59) · ×1
  • TrackSwipeActionsKt.TrackSwipeActions (cognitive 59) app/src/main/java/com/aurora/music/ui/components/TrackSwipeActions.kt:51 — TrackSwipeActionsKt.TrackSwipeActions has cognitive complexity 59 (threshold 15). Drivers by points: if/else 30 (48 pts), boolean chains 5, match/switch 3 (5 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SourcesSettingsScreenKt.SourcesSettingsScreen (cognitive 59) · ×1
  • SourcesSettingsScreenKt.SourcesSettingsScreen (cognitive 59) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:83 — SourcesSettingsScreenKt.SourcesSettingsScreen has cognitive complexity 59 (threshold 15). Drivers by points: if/else 37 (48 pts), boolean chains 4, error handling 3 (4 pts), match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DynamicsEffectKernel.process (cognitive 59) · ×1
  • DynamicsEffectKernel.process (cognitive 59) core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:22 — DynamicsEffectKernel.process has cognitive complexity 59 (threshold 15). Drivers by points: if/else 29 (54 pts), match/switch 1 (4 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrackPlaylistsSheetKt.TrackPlaylistsSheet (cognitive 55) · ×1
  • TrackPlaylistsSheetKt.TrackPlaylistsSheet (cognitive 55) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:45 — TrackPlaylistsSheetKt.TrackPlaylistsSheet has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (39 pts), error handling 6 (10 pts), boolean chains 3, match/switch 2 (3 pts) (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.
D2 · Cognitive Complexity · LibraryScreenKt.LibraryScreen (cognitive 55) · ×1
  • LibraryScreenKt.LibraryScreen (cognitive 55) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:157 — LibraryScreenKt.LibraryScreen has cognitive complexity 55 (threshold 15). Drivers by points: if/else 33 (45 pts), match/switch 3 (6 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SongSourcesMenuKt.SourcesMenu (cognitive 55) · ×1
  • SongSourcesMenuKt.SourcesMenu (cognitive 55) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:90 — SongSourcesMenuKt.SourcesMenu has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28 (45 pts), error handling 2 (4 pts), boolean chains 3, match/switch 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SongSourcesMenuKt.SongSourcesMenu (cognitive 55) · ×1
  • SongSourcesMenuKt.SongSourcesMenu (cognitive 55) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:81 — SongSourcesMenuKt.SongSourcesMenu has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28 (45 pts), error handling 2 (4 pts), boolean chains 3, match/switch 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · QueueScreenKt.QueueContent (cognitive 54) · ×1
  • QueueScreenKt.QueueContent (cognitive 54) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:133 — QueueScreenKt.QueueContent has cognitive complexity 54 (threshold 15). Drivers by points: if/else 31 (45 pts), boolean chains 7, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrackPlaylistsSheetKt.TrackPlaylistsSheet (cognitive 54) · ×1
  • TrackPlaylistsSheetKt.TrackPlaylistsSheet (cognitive 54) desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:48 — TrackPlaylistsSheetKt.TrackPlaylistsSheet has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (39 pts), error handling 6 (10 pts), match/switch 2 (3 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · DsdPcmDecoder.push (cognitive 53) · ×1
  • DsdPcmDecoder.push (cognitive 53) core/src/main/kotlin/com/aurora/music/playback/dsd/DsdPcmDecoder.kt:28 — DsdPcmDecoder.push has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 6 (22 pts), boolean chains 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · DjKeywords.parse (cognitive 51) · ×1
  • DjKeywords.parse (cognitive 51) core/src/main/kotlin/com/aurora/music/ai/DjKeywords.kt:65 — DjKeywords.parse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 28 (36 pts), boolean chains 10, match/switch 5 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MixPlayer.tick (cognitive 50) · ×1
  • MixPlayer.tick (cognitive 50) app/src/main/java/com/aurora/music/mix/MixPlayer.kt:225 — MixPlayer.tick has cognitive complexity 50 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 11, match/switch 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · RackHeadroomAnalyzer.analyze (cognitive 49) · ×1
  • RackHeadroomAnalyzer.analyze (cognitive 49) core/src/main/kotlin/com/aurora/music/playback/engine/RackHeadroom.kt:19 — RackHeadroomAnalyzer.analyze has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 8, loops 4 (6 pts), match/switch 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NetworkCompressedDecoder.decode (cognitive 48) · ×1
  • NetworkCompressedDecoder.decode (cognitive 48) app/src/main/java/com/aurora/music/playback/network/audio/NetworkCompressedDecoder.kt:29 — NetworkCompressedDecoder.decode has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (36 pts), boolean chains 7, loops 4, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackHeadroomAnalyzer.graphBound (cognitive 48) · ×1
  • RackHeadroomAnalyzer.graphBound (cognitive 48) core/src/main/kotlin/com/aurora/music/playback/engine/RackHeadroom.kt:107 — RackHeadroomAnalyzer.graphBound has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (39 pts), match/switch 2 (6 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoPlayer.run (cognitive 48) · ×1
  • VideoPlayer.run (cognitive 48) desktop/src/main/kotlin/com/aurora/music/desktop/video/VideoPlayer.kt:93 — VideoPlayer.run has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 7, loops 3 (4 pts), error handling 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MeasurementTextImporter.parsePoints (cognitive 47) · ×1
  • MeasurementTextImporter.parsePoints (cognitive 47) core/src/main/kotlin/com/aurora/music/data/tuning/MeasurementTextImporter.kt:26 — MeasurementTextImporter.parsePoints has cognitive complexity 47 (threshold 15). Drivers by points: if/else 27 (31 pts), boolean chains 15, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AudioDecoder.decodeTrack (cognitive 46) · ×1
  • AudioDecoder.decodeTrack (cognitive 46) app/src/main/java/com/aurora/music/data/AudioDecoder.kt:48 — AudioDecoder.decodeTrack has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 2 (6 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToneKernel.process (cognitive 46) · ×1
  • ToneKernel.process (cognitive 46) core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:86 — ToneKernel.process has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 6 (18 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackEqTextDialogsKt.RackEqImportDialog (cognitive 44) · ×1
  • RackEqTextDialogsKt.RackEqImportDialog (cognitive 44) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:47 — RackEqTextDialogsKt.RackEqImportDialog has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (30 pts), error handling 4 (8 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LyricsScreenKt.ImmersiveLyrics (cognitive 44) · ×1
  • LyricsScreenKt.ImmersiveLyrics (cognitive 44) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:263 — LyricsScreenKt.ImmersiveLyrics has cognitive complexity 44 (threshold 15). Drivers by points: if/else 32, boolean chains 11, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlaybackService.updateSignalPathSnapshot (cognitive 43) · ×1
  • PlaybackService.updateSignalPathSnapshot (cognitive 43) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:489 — PlaybackService.updateSignalPathSnapshot has cognitive complexity 43 (threshold 15). Drivers by points: if/else 27 (38 pts), boolean chains 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CrowdNoise.events (cognitive 43) · ×1
  • CrowdNoise.events (cognitive 43) core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:174 — CrowdNoise.events has cognitive complexity 43 (threshold 15). Drivers by points: if/else 36 (37 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cognitive 42) · ×1
  • ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cognitive 42) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:46 — ConvolutionLibraryScreenKt.ConvolutionLibraryScreen has cognitive complexity 42 (threshold 15). Drivers by points: if/else 23 (27 pts), boolean chains 11, error handling 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SignInScreenKt.SignInScreen (cognitive 42) · ×1
  • SignInScreenKt.SignInScreen (cognitive 42) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:105 — SignInScreenKt.SignInScreen has cognitive complexity 42 (threshold 15). Drivers by points: if/else 29 (33 pts), match/switch 5 (6 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlaybackListeningDetails.context (cognitive 41) · ×1
  • PlaybackListeningDetails.context (cognitive 41) app/src/main/java/com/aurora/music/playback/PlaybackListeningDetails.kt:55 — PlaybackListeningDetails.context has cognitive complexity 41 (threshold 15). Drivers by points: if/else 28, boolean chains 9, match/switch 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlaybackService.serviceListener (cognitive 41) · ×1
  • PlaybackService.serviceListener (cognitive 41) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:184 — PlaybackService.serviceListener has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 18 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ListeningStatsScreenKt.ListeningStatsScreen (cognitive 41) · ×1
  • ListeningStatsScreenKt.ListeningStatsScreen (cognitive 41) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:70 — ListeningStatsScreenKt.ListeningStatsScreen has cognitive complexity 41 (threshold 15). Drivers by points: if/else 28 (40 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CueSheets.parse (cognitive 41) · ×1
  • CueSheets.parse (cognitive 41) core/src/main/kotlin/com/aurora/music/data/CueSheet.kt:58 — CueSheets.parse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EndpointServer.handle (cognitive 41) · ×1
  • EndpointServer.handle (cognitive 41) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/EndpointServer.kt:125 — EndpointServer.handle has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 11, error handling 5, loops 1 (3 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cognitive 40) · ×1
  • TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cognitive 40) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:36 — TuningMeasurementDialogsKt.TuningMeasurementImportDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (32 pts), error handling 3 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OversampledSaturator.process (cognitive 40) · ×1
  • OversampledSaturator.process (cognitive 40) core/src/main/kotlin/com/aurora/music/playback/engine/OversampledSaturator.kt:20 — OversampledSaturator.process has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 5 (15 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComparisonScreenKt.ComparisonScreen (cognitive 40) · ×1
  • ComparisonScreenKt.ComparisonScreen (cognitive 40) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:29 — ComparisonScreenKt.ComparisonScreen has cognitive complexity 40 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ArtworkRepository.open (cognitive 39) · ×1
  • ArtworkRepository.open (cognitive 39) core/src/main/kotlin/com/aurora/music/data/artwork/ArtworkRepository.kt:53 — ArtworkRepository.open has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 8, error handling 5 (7 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopListeningDetails.context (cognitive 39) · ×1
  • DesktopListeningDetails.context (cognitive 39) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopListeningDetails.kt:41 — DesktopListeningDetails.context has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28 (29 pts), boolean chains 10 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ThemeStylesKt.auroraPanel (cognitive 39) · ×1
  • ThemeStylesKt.auroraPanel (cognitive 39) desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:133 — ThemeStylesKt.auroraPanel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 2, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComparisonScreenKt.ComparisonScreen (cognitive 38) · ×1
  • ComparisonScreenKt.ComparisonScreen (cognitive 38) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:38 — ComparisonScreenKt.ComparisonScreen has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CrowdNoise.next (cognitive 38) · ×1
  • CrowdNoise.next (cognitive 38) core/src/main/kotlin/com/aurora/music/playback/engine/CrowdNoise.kt:105 — CrowdNoise.next has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RendererMediaCache.receive (cognitive 37) · ×1
  • RendererMediaCache.receive (cognitive 37) app/src/main/java/com/aurora/music/playback/network/RendererMediaCache.kt:27 — RendererMediaCache.receive has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TagEditScreenKt.TagEditScreen (cognitive 37) · ×1
  • TagEditScreenKt.TagEditScreen (cognitive 37) app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:60 — TagEditScreenKt.TagEditScreen has cognitive complexity 37 (threshold 15). Drivers by points: if/else 29 (37 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DragToDismissKt.DragToDismiss (cognitive 37) · ×1
  • DragToDismissKt.DragToDismiss (cognitive 37) app/src/main/java/com/aurora/music/ui/screens/player/DragToDismiss.kt:39 — DragToDismissKt.DragToDismiss has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 11, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AutoMixPlanner.plan (cognitive 37) · ×1
  • AutoMixPlanner.plan (cognitive 37) core/src/main/kotlin/com/aurora/music/mix/AutoMixPlanner.kt:8 — AutoMixPlanner.plan has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 11, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrecisionEffectsKernel.process (cognitive 37) · ×1
  • PrecisionEffectsKernel.process (cognitive 37) core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionEffectsKernel.kt:37 — PrecisionEffectsKernel.process has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopMixPlayer.run (cognitive 37) · ×1
  • DesktopMixPlayer.run (cognitive 37) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/DesktopMixPlayer.kt:111 — DesktopMixPlayer.run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 4 (7 pts), boolean chains 4, error handling 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cognitive 37) · ×1
  • TuningMeasurementDialogsKt.TuningMeasurementImportDialog (cognitive 37) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:30 — TuningMeasurementDialogsKt.TuningMeasurementImportDialog has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 3, error handling 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LyricsRepository.lookup (cognitive 36) · ×1
  • LyricsRepository.lookup (cognitive 36) core/src/main/kotlin/com/aurora/music/data/LyricsRepository.kt:56 — LyricsRepository.lookup has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cognitive 36) · ×1
  • ConvolutionLibraryScreenKt.ConvolutionLibraryScreen (cognitive 36) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:50 — ConvolutionLibraryScreenKt.ConvolutionLibraryScreen has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 10, error handling 2, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SourcesSettingsScreenKt.SourcesSettingsScreen (cognitive 36) · ×1
  • SourcesSettingsScreenKt.SourcesSettingsScreen (cognitive 36) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:80 — SourcesSettingsScreenKt.SourcesSettingsScreen has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 3, match/switch 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.
D2 · Cognitive Complexity · PlaybackFades.maybeBeginXfade (cognitive 35) · ×1
  • PlaybackFades.maybeBeginXfade (cognitive 35) app/src/main/java/com/aurora/music/playback/PlaybackFades.kt:87 — PlaybackFades.maybeBeginXfade has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 11 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ImpulseResponse.loadWavResult (cognitive 35) · ×1
  • ImpulseResponse.loadWavResult (cognitive 35) core/src/main/kotlin/com/aurora/music/playback/ImpulseResponse.kt:66 — ImpulseResponse.loadWavResult has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 13, match/switch 3 (4 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PcmLevelMeter.observe (cognitive 35) · ×1
  • PcmLevelMeter.observe (cognitive 35) core/src/main/kotlin/com/aurora/music/playback/PcmLevelMeter.kt:64 — PcmLevelMeter.observe has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LyricTimingKt.syllables (cognitive 34) · ×1
  • LyricTimingKt.syllables (cognitive 34) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:361 — LyricTimingKt.syllables has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7, match/switch 2 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EngineSignalPathKt.signalPath (cognitive 34) · ×1
  • EngineSignalPathKt.signalPath (cognitive 34) desktop/src/main/kotlin/com/aurora/music/desktop/audio/EngineSignalPath.kt:19 — EngineSignalPathKt.signalPath has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, boolean chains 4, match/switch 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CaptionFrame.onFrame (cognitive 34) · ×1
  • CaptionFrame.onFrame (cognitive 34) desktop/src/main/kotlin/com/aurora/music/desktop/platform/CaptionFrame.kt:48 — CaptionFrame.onFrame has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 1, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · SearchScreenKt.Results (cognitive 34) · ×1
  • SearchScreenKt.Results (cognitive 34) desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:320 — SearchScreenKt.Results has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 3, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UsbAudioSink.getCurrentPositionUs (cognitive 34) · ×1
  • UsbAudioSink.getCurrentPositionUs (cognitive 34) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:552 — UsbAudioSink.getCurrentPositionUs has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioCache.factory (cognitive 33) · ×1
  • AudioCache.factory (cognitive 33) app/src/main/java/com/aurora/music/data/cache/AudioCache.kt:98 — AudioCache.factory has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DjPicker.pick (cognitive 33) · ×1
  • DjPicker.pick (cognitive 33) core/src/main/kotlin/com/aurora/music/ai/DjPicker.kt:123 — DjPicker.pick has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 6, loops 2 (3 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.
D2 · Cognitive Complexity · AutoEqController.apply (cognitive 33) · ×1
  • AutoEqController.apply (cognitive 33) core/src/main/kotlin/com/aurora/music/data/AutoEqController.kt:53 — AutoEqController.apply has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileLyrics.fromSylt (cognitive 33) · ×1
  • FileLyrics.fromSylt (cognitive 33) core/src/main/kotlin/com/aurora/music/data/FileLyrics.kt:70 — FileLyrics.fromSylt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 3 (7 pts), boolean chains 6, match/switch 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrecisionBlockProcessor.takeOutput (cognitive 33) · ×1
  • PrecisionBlockProcessor.takeOutput (cognitive 33) core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:242 — PrecisionBlockProcessor.takeOutput has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 6 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · WaveformKt.Waveform (cognitive 33) · ×1
  • WaveformKt.Waveform (cognitive 33) desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:42 — WaveformKt.Waveform has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (26 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DsdExtractor.readDffChunk (cognitive 32) · ×1
  • DsdExtractor.readDffChunk (cognitive 32) app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:136 — DsdExtractor.readDffChunk has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 14, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NetworkQueuePlayer.load (cognitive 32) · ×1
  • NetworkQueuePlayer.load (cognitive 32) app/src/main/java/com/aurora/music/playback/network/NetworkQueuePlayer.kt:156 — NetworkQueuePlayer.load has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SignInScreenKt.SignInScreen (cognitive 32) · ×1
  • SignInScreenKt.SignInScreen (cognitive 32) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:96 — SignInScreenKt.SignInScreen has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (24 pts), match/switch 5 (7 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ImportPlaylistSheetKt.ImportPlaylistSheet (cognitive 32) · ×1
  • ImportPlaylistSheetKt.ImportPlaylistSheet (cognitive 32) app/src/main/java/com/aurora/music/ui/screens/library/ImportPlaylistSheet.kt:74 — ImportPlaylistSheetKt.ImportPlaylistSheet has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, error handling 3, match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BoundedHttpServer.readRequest (cognitive 32) · ×1
  • BoundedHttpServer.readRequest (cognitive 32) core/src/main/kotlin/com/aurora/music/playback/network/BoundedHttpServer.kt:114 — BoundedHttpServer.readRequest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 4, loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopConnectHost.execute (cognitive 32) · ×1
  • DesktopConnectHost.execute (cognitive 32) desktop/src/main/kotlin/com/aurora/music/desktop/connect/DesktopConnectHost.kt:40 — DesktopConnectHost.execute has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 3, match/switch 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HomeScreenKt.HomeScreen (cognitive 32) · ×1
  • HomeScreenKt.HomeScreen (cognitive 32) desktop/src/main/kotlin/com/aurora/music/ui/screens/home/HomeScreen.kt:113 — HomeScreenKt.HomeScreen has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 8 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackEqTextDialogsKt.RackEqImportDialog (cognitive 32) · ×1
  • RackEqTextDialogsKt.RackEqImportDialog (cognitive 32) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:45 — RackEqTextDialogsKt.RackEqImportDialog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (23 pts), error handling 4 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · EqualizerScreenKt.AutoEqPanel (cognitive 31) · ×1
  • EqualizerScreenKt.AutoEqPanel (cognitive 31) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:341 — EqualizerScreenKt.AutoEqPanel has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, boolean chains 5, error handling 2, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · RecapInsightsKt.RecapInsights (cognitive 31) · ×1
  • RecapInsightsKt.RecapInsights (cognitive 31) app/src/main/java/com/aurora/music/ui/screens/stats/RecapInsights.kt:21 — RecapInsightsKt.RecapInsights has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PresetRuleEngine.evaluate (cognitive 31) · ×1
  • PresetRuleEngine.evaluate (cognitive 31) core/src/main/kotlin/com/aurora/music/data/rules/PresetRuleEngine.kt:36 — PresetRuleEngine.evaluate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 6 (11 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · RendererJson.command (cognitive 31) · ×1
  • RendererJson.command (cognitive 31) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererJson.kt:15 — RendererJson.command has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 6, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MixAnalyzer.decode (cognitive 31) · ×1
  • MixAnalyzer.decode (cognitive 31) desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:66 — MixAnalyzer.decode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, loops 3 (4 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · QueueScreenKt.QueueContent (cognitive 31) · ×1
  • QueueScreenKt.QueueContent (cognitive 31) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:91 — QueueScreenKt.QueueContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · UsbStreamingThread.run (cognitive 31) · ×1
  • UsbStreamingThread.run (cognitive 31) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbStreamingThread.kt:68 — UsbStreamingThread.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6, loops 2 (3 pts), match/switch 1 (3 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProcessedNetworkRenderer.decode (cognitive 30) · ×1
  • ProcessedNetworkRenderer.decode (cognitive 30) app/src/main/java/com/aurora/music/playback/network/audio/ProcessedNetworkRenderer.kt:116 — ProcessedNetworkRenderer.decode has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (16 pts), loops 3 (6 pts), boolean chains 5, match/switch 1 (2 pts), error handling 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.
D2 · Cognitive Complexity · DjEngine.nextSet (cognitive 30) · ×1
  • DjEngine.nextSet (cognitive 30) core/src/main/kotlin/com/aurora/music/ai/DjEngine.kt:183 — DjEngine.nextSet has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 12, loops 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Download.run (cognitive 30) · ×1
  • Download.run (cognitive 30) desktop/src/main/kotlin/com/aurora/music/desktop/audio/AudioCache.kt:303 — Download.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, loops 2 (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.
D2 · Cognitive Complexity · ImportPlaylistDialogKt.ImportPlaylistDialog (cognitive 30) · ×1
  • ImportPlaylistDialogKt.ImportPlaylistDialog (cognitive 30) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/ImportPlaylistDialog.kt:59 — ImportPlaylistDialogKt.ImportPlaylistDialog has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (22 pts), error handling 3, match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WaveformKt.Waveform (cognitive 29) · ×1
  • WaveformKt.Waveform (cognitive 29) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:42 — WaveformKt.Waveform has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RackEqTextCodec.parse (cognitive 29) · ×1
  • RackEqTextCodec.parse (cognitive 29) core/src/main/kotlin/com/aurora/music/data/RackEqTextCodec.kt:18 — RackEqTextCodec.parse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 7, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SpaceKernel.process (cognitive 29) · ×1
  • SpaceKernel.process (cognitive 29) core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:159 — SpaceKernel.process has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (12 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModulationKernel.process (cognitive 29) · ×1
  • ModulationKernel.process (cognitive 29) core/src/main/kotlin/com/aurora/music/playback/engine/StudioRackKernels.kt:238 — ModulationKernel.process has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (7 pts), match/switch 2 (7 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VisualizerScreenKt.VisualizerScreen (cognitive 29) · ×1
  • VisualizerScreenKt.VisualizerScreen (cognitive 29) desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:76 — VisualizerScreenKt.VisualizerScreen has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 4, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DirectNetworkPreparer.inspect (cognitive 28) · ×1
  • DirectNetworkPreparer.inspect (cognitive 28) app/src/main/java/com/aurora/music/playback/network/audio/DirectNetworkPreparer.kt:75 — DirectNetworkPreparer.inspect has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, boolean chains 13, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LyricsScreenKt.LyricsScreen (cognitive 28) · ×1
  • LyricsScreenKt.LyricsScreen (cognitive 28) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:79 — LyricsScreenKt.LyricsScreen has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AccountsScreenKt.AccountsScreen (cognitive 28) · ×1
  • AccountsScreenKt.AccountsScreen (cognitive 28) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:55 — AccountsScreenKt.AccountsScreen has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (25 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ThemeStylesKt.styleColorScheme (cognitive 28) · ×1
  • ThemeStylesKt.styleColorScheme (cognitive 28) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:73 — ThemeStylesKt.styleColorScheme has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DjModelStore.fetchPart (cognitive 28) · ×1
  • DjModelStore.fetchPart (cognitive 28) core/src/main/kotlin/com/aurora/music/ai/DjModelStore.kt:117 — DjModelStore.fetchPart has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · YouTubeMusicPlaybackTracker.report (cognitive 28) · ×1
  • YouTubeMusicPlaybackTracker.report (cognitive 28) core/src/main/kotlin/com/aurora/music/data/YouTubeMusicPlaybackTracker.kt:33 — YouTubeMusicPlaybackTracker.report has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 9 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MergeMatcher.playbackCandidates (cognitive 28) · ×1
  • MergeMatcher.playbackCandidates (cognitive 28) core/src/main/kotlin/com/aurora/music/data/merged/MergeMatcher.kt:42 — MergeMatcher.playbackCandidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9, error handling 2 (4 pts), loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · YouTubeDownloader.remux (cognitive 28) · ×1
  • YouTubeDownloader.remux (cognitive 28) desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YouTubeDownloader.kt:170 — YouTubeDownloader.remux has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MatchPickerKt.MatchPickerDialog (cognitive 28) · ×1
  • MatchPickerKt.MatchPickerDialog (cognitive 28) desktop/src/main/kotlin/com/aurora/music/ui/components/MatchPicker.kt:61 — MatchPickerKt.MatchPickerDialog has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LibraryScreenKt.LibraryScreen (cognitive 28) · ×1
  • LibraryScreenKt.LibraryScreen (cognitive 28) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:229 — LibraryScreenKt.LibraryScreen has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, match/switch 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · NetworkPlaybackBridge.executeAuthorized (cognitive 27) · ×1
  • NetworkPlaybackBridge.executeAuthorized (cognitive 27) app/src/main/java/com/aurora/music/playback/network/NetworkPlaybackBridge.kt:134 — NetworkPlaybackBridge.executeAuthorized has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GlassControlsKt.GlassToggle (cognitive 27) · ×1
  • GlassControlsKt.GlassToggle (cognitive 27) app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:333 — GlassControlsKt.GlassToggle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25 (27 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SearchScreenKt.SearchScreen (cognitive 27) · ×1
  • SearchScreenKt.SearchScreen (cognitive 27) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:91 — SearchScreenKt.SearchScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · VisualizerScreenKt.VisualizerScreen (cognitive 27) · ×1
  • VisualizerScreenKt.VisualizerScreen (cognitive 27) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:75 — VisualizerScreenKt.VisualizerScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 4, match/switch 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerViewModel.syncFromController (cognitive 27) · ×1
  • PlayerViewModel.syncFromController (cognitive 27) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:669 — PlayerViewModel.syncFromController has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 12, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · BackupArchive.decodeJson (cognitive 27) · ×1
  • BackupArchive.decodeJson (cognitive 27) core/src/main/kotlin/com/aurora/music/data/BackupArchive.kt:161 — BackupArchive.decodeJson has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 19, if/else 4 (7 pts), match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · CoverArtClient.candidates (cognitive 27) · ×1
  • CoverArtClient.candidates (cognitive 27) core/src/main/kotlin/com/aurora/music/data/artwork/CoverArtClient.kt:32 — CoverArtClient.candidates has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SacdImage.compressedFrame (cognitive 27) · ×1
  • SacdImage.compressedFrame (cognitive 27) core/src/main/kotlin/com/aurora/music/playback/sacd/SacdImage.kt:105 — SacdImage.compressedFrame has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TagEditScreenKt.TagEditScreen (cognitive 27) · ×1
  • TagEditScreenKt.TagEditScreen (cognitive 27) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:54 — TagEditScreenKt.TagEditScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · FolderScreenKt.FolderScreen (cognitive 27) · ×1
  • FolderScreenKt.FolderScreen (cognitive 27) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:57 — FolderScreenKt.FolderScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, 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.
D2 · Cognitive Complexity · ThemeStylesKt.styleColorScheme (cognitive 27) · ×1
  • ThemeStylesKt.styleColorScheme (cognitive 27) desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:71 — ThemeStylesKt.styleColorScheme has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (26 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AppUpdateCardKt.AppUpdateCardContent (cognitive 26) · ×1
  • AppUpdateCardKt.AppUpdateCardContent (cognitive 26) app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:94 — AppUpdateCardKt.AppUpdateCardContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SoundCloudBackend.sync (cognitive 26) · ×1
  • SoundCloudBackend.sync (cognitive 26) core/src/main/kotlin/com/aurora/music/data/SoundCloudBackend.kt:171 — SoundCloudBackend.sync has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 3 (6 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · YouTubeMusicBackend.detail (cognitive 26) · ×1
  • YouTubeMusicBackend.detail (cognitive 26) core/src/main/kotlin/com/aurora/music/data/YouTubeMusicBackend.kt:142 — YouTubeMusicBackend.detail has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 5, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PresetSettingsStore.transitionPresetRule (cognitive 26) · ×1
  • PresetSettingsStore.transitionPresetRule (cognitive 26) core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:162 — PresetSettingsStore.transitionPresetRule has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StemSpectrogram.decode (cognitive 26) · ×1
  • StemSpectrogram.decode (cognitive 26) core/src/main/kotlin/com/aurora/music/mix/StemSpectrogram.kt:60 — StemSpectrogram.decode has cognitive complexity 26 (threshold 15). Drivers by points: loops 8 (15 pts), if/else 3 (11 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · PrecisionDspCoeffBuilder.cascade (cognitive 26) · ×1
  • PrecisionDspCoeffBuilder.cascade (cognitive 26) core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionDspCoefficients.kt:126 — PrecisionDspCoeffBuilder.cascade has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 7, 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.
D2 · Cognitive Complexity · LibraryScreenKt.AlphabetRail (cognitive 26) · ×1
  • LibraryScreenKt.AlphabetRail (cognitive 26) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1022 — LibraryScreenKt.AlphabetRail has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MusicHaptics.run (cognitive 25) · ×1
  • MusicHaptics.run (cognitive 25) app/src/main/java/com/aurora/music/playback/MusicHaptics.kt:98 — MusicHaptics.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlaybackService.startAudioObservers (cognitive 25) · ×1
  • PlaybackService.startAudioObservers (cognitive 25) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:280 — PlaybackService.startAudioObservers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 5 (8 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.
D2 · Cognitive Complexity · PlaybackService.customCommand (cognitive 25) · ×1
  • PlaybackService.customCommand (cognitive 25) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:571 — PlaybackService.customCommand has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · PlaybackDockKt.PlaybackDock (cognitive 25) · ×1
  • PlaybackDockKt.PlaybackDock (cognitive 25) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:74 — PlaybackDockKt.PlaybackDock has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LibraryScreenKt.buildRows (cognitive 25) · ×1
  • LibraryScreenKt.buildRows (cognitive 25) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:922 — LibraryScreenKt.buildRows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (21 pts), loops 1 (2 pts), match/switch 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ProcessingPresetBundle.validateImpulseResponse (cognitive 25) · ×1
  • ProcessingPresetBundle.validateImpulseResponse (cognitive 25) core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:269 — ProcessingPresetBundle.validateImpulseResponse has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, loops 3 (6 pts), if/else 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · SmartPlaylistEngine.matches (cognitive 25) · ×1
  • SmartPlaylistEngine.matches (cognitive 25) core/src/main/kotlin/com/aurora/music/data/SmartPlaylists.kt:60 — SmartPlaylistEngine.matches has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 5 (11 pts) (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.
D2 · Cognitive Complexity · ShortcutsKt.macShortcut (cognitive 25) · ×1
  • ShortcutsKt.macShortcut (cognitive 25) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:70 — ShortcutsKt.macShortcut has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, match/switch 5 (9 pts), if/else 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShortcutsKt.pcShortcut (cognitive 25) · ×1
  • ShortcutsKt.pcShortcut (cognitive 25) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:112 — ShortcutsKt.pcShortcut has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 5 (9 pts), boolean chains 8, if/else 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AppUpdateCardKt.AppUpdateCardContent (cognitive 25) · ×1
  • AppUpdateCardKt.AppUpdateCardContent (cognitive 25) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:45 — AppUpdateCardKt.AppUpdateCardContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NetworkPlaybackBridge.enableReceiver (cognitive 24) · ×1
  • NetworkPlaybackBridge.enableReceiver (cognitive 24) app/src/main/java/com/aurora/music/playback/network/NetworkPlaybackBridge.kt:50 — NetworkPlaybackBridge.enableReceiver has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MatchPickerKt.MatchPickerSheet (cognitive 24) · ×1
  • MatchPickerKt.MatchPickerSheet (cognitive 24) app/src/main/java/com/aurora/music/ui/components/MatchPicker.kt:65 — MatchPickerKt.MatchPickerSheet has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · YouTubeMusicStepKt.YouTubeMusicBrowser (cognitive 24) · ×1
  • YouTubeMusicStepKt.YouTubeMusicBrowser (cognitive 24) app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:71 — YouTubeMusicStepKt.YouTubeMusicBrowser has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 4, error handling 2, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ComparisonViewModel.start (cognitive 24) · ×1
  • ComparisonViewModel.start (cognitive 24) app/src/main/java/com/aurora/music/viewmodel/ComparisonViewModel.kt:64 — ComparisonViewModel.start has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ParallelSchedule.render (cognitive 24) · ×1
  • ParallelSchedule.render (cognitive 24) core/src/main/kotlin/com/aurora/music/playback/engine/RackGraph.kt:121 — ParallelSchedule.render has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryScreenKt.QuickTileCard (cognitive 24) · ×1
  • LibraryScreenKt.QuickTileCard (cognitive 24) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:735 — LibraryScreenKt.QuickTileCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LibraryScreenKt.SongsTab (cognitive 24) · ×1
  • LibraryScreenKt.SongsTab (cognitive 24) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:806 — LibraryScreenKt.SongsTab has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AppearanceScreenKt.AppearanceScreen (cognitive 24) · ×1
  • AppearanceScreenKt.AppearanceScreen (cognitive 24) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:78 — AppearanceScreenKt.AppearanceScreen has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SftpDataSource.open (cognitive 24) · ×1
  • SftpDataSource.open (cognitive 24) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/SftpDataSource.kt:45 — SftpDataSource.open has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 6 (10 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrecisionAudioSink.takeProcessorOutput (cognitive 23) · ×1
  • PrecisionAudioSink.takeProcessorOutput (cognitive 23) app/src/main/java/com/aurora/music/playback/PrecisionAudioSink.kt:244 — PrecisionAudioSink.takeProcessorOutput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · MiniPlayerKt.MiniPlayer (cognitive 23) · ×1
  • MiniPlayerKt.MiniPlayer (cognitive 23) app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:60 — MiniPlayerKt.MiniPlayer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SearchScreenKt.Results (cognitive 23) · ×1
  • SearchScreenKt.Results (cognitive 23) app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:266 — SearchScreenKt.Results has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProcessingPresetsScreenKt.ProcessingPresetsScreen (cognitive 23) · ×1
  • ProcessingPresetsScreenKt.ProcessingPresetsScreen (cognitive 23) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:70 — ProcessingPresetsScreenKt.ProcessingPresetsScreen has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, error handling 7, boolean chains 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · VoiceAligner.window (cognitive 23) · ×1
  • VoiceAligner.window (cognitive 23) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:127 — VoiceAligner.window has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProductionRackProcessor.blendOutput (cognitive 23) · ×1
  • ProductionRackProcessor.blendOutput (cognitive 23) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionRackProcessor.kt:219 — ProductionRackProcessor.blendOutput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ConnectSession.poll (cognitive 23) · ×1
  • ConnectSession.poll (cognitive 23) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/ConnectSession.kt:49 — ConnectSession.poll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cognitive 23) · ×1
  • AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cognitive 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AudioOutputSettingsScreen.kt:72 — AudioOutputSettingsScreenKt.AudioOutputSettingsScreen has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 pts), match/switch 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SettingsScreenKt.SettingsScreen (cognitive 23) · ×1
  • SettingsScreenKt.SettingsScreen (cognitive 23) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:84 — SettingsScreenKt.SettingsScreen has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LibraryViewModel.load (cognitive 23) · ×1
  • LibraryViewModel.load (cognitive 23) desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt:148 — LibraryViewModel.load has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), error handling 6, boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ProfileImages.import (cognitive 22) · ×1
  • ProfileImages.import (cognitive 22) app/src/main/java/com/aurora/music/data/ProfileImages.kt:17 — ProfileImages.import has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3, 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.
D2 · Cognitive Complexity · ExtensionManager.loadTracks (cognitive 22) · ×1
  • ExtensionManager.loadTracks (cognitive 22) app/src/main/java/com/aurora/music/extensions/ExtensionManager.kt:183 — ExtensionManager.loadTracks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, error handling 6, loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FolderScreenKt.FolderScreen (cognitive 22) · ×1
  • FolderScreenKt.FolderScreen (cognitive 22) app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:52 — FolderScreenKt.FolderScreen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, 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.
D2 · Cognitive Complexity · LibraryScreenKt.SongsTab (cognitive 22) · ×1
  • LibraryScreenKt.SongsTab (cognitive 22) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:704 — LibraryScreenKt.SongsTab has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SettingsScreenKt.SettingsScreen (cognitive 22) · ×1
  • SettingsScreenKt.SettingsScreen (cognitive 22) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:74 — SettingsScreenKt.SettingsScreen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (18 pts), match/switch 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TypeKt.auroraTypography (cognitive 22) · ×1
  • TypeKt.auroraTypography (cognitive 22) app/src/main/java/com/aurora/music/ui/theme/Type.kt:63 — TypeKt.auroraTypography has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (7 pts), match/switch 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · PlaylistLinks.parse (cognitive 22) · ×1
  • PlaylistLinks.parse (cognitive 22) core/src/main/kotlin/com/aurora/music/data/PlaylistLinks.kt:21 — PlaylistLinks.parse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · EqResponseCalculator.calculateCoefficients (cognitive 22) · ×1
  • EqResponseCalculator.calculateCoefficients (cognitive 22) core/src/main/kotlin/com/aurora/music/playback/engine/EqResponse.kt:96 — EqResponseCalculator.calculateCoefficients has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GaplessAudioSink.drain (cognitive 21) · ×1
  • GaplessAudioSink.drain (cognitive 21) app/src/main/java/com/aurora/music/playback/GaplessAudioSink.kt:159 — GaplessAudioSink.drain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 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.
D2 · Cognitive Complexity · HapticOutput.tap (cognitive 21) · ×1
  • HapticOutput.tap (cognitive 21) app/src/main/java/com/aurora/music/playback/MusicHaptics.kt:179 — HapticOutput.tap has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 5 (9 pts), boolean chains 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · DsdExtractor.readDstAudio (cognitive 21) · ×1
  • DsdExtractor.readDstAudio (cognitive 21) app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:363 — DsdExtractor.readDstAudio has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PermissionsScreenKt.PermissionsScreen (cognitive 21) · ×1
  • PermissionsScreenKt.PermissionsScreen (cognitive 21) app/src/main/java/com/aurora/music/ui/screens/settings/PermissionsScreen.kt:68 — PermissionsScreenKt.PermissionsScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ThemeStylesKt.auroraPanel (cognitive 21) · ×1
  • ThemeStylesKt.auroraPanel (cognitive 21) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:136 — ThemeStylesKt.auroraPanel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DjMode.onQueueChanged (cognitive 21) · ×1
  • DjMode.onQueueChanged (cognitive 21) core/src/main/kotlin/com/aurora/music/ai/DjMode.kt:227 — DjMode.onQueueChanged has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TuningFitter.findBand (cognitive 21) · ×1
  • TuningFitter.findBand (cognitive 21) core/src/main/kotlin/com/aurora/music/data/tuning/TuningFitter.kt:295 — TuningFitter.findBand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 4 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PrecisionBlockProcessor.queueInput (cognitive 21) · ×1
  • PrecisionBlockProcessor.queueInput (cognitive 21) core/src/main/kotlin/com/aurora/music/playback/PrecisionBlockProcessor.kt:202 — PrecisionBlockProcessor.queueInput has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DesktopPlayer.sync (cognitive 21) · ×1
  • DesktopPlayer.sync (cognitive 21) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:313 — DesktopPlayer.sync has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · MediaControls.attach (cognitive 21) · ×1
  • MediaControls.attach (cognitive 21) desktop/src/main/kotlin/com/aurora/music/desktop/player/MediaControls.kt:40 — MediaControls.attach has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DetailScreenKt.ArtistAbout (cognitive 21) · ×1
  • DetailScreenKt.ArtistAbout (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:674 — DetailScreenKt.ArtistAbout has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryScreenKt.LibCard (cognitive 21) · ×1
  • LibraryScreenKt.LibCard (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1328 — LibraryScreenKt.LibCard has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AccountsScreenKt.AccountsScreen (cognitive 21) · ×1
  • AccountsScreenKt.AccountsScreen (cognitive 21) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:57 — AccountsScreenKt.AccountsScreen has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SonicEngine.scan (cognitive 20) · ×1
  • SonicEngine.scan (cognitive 20) app/src/main/java/com/aurora/music/data/SonicEngine.kt:68 — SonicEngine.scan has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 6 (8 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MixAnalyzer.decode (cognitive 20) · ×1
  • MixAnalyzer.decode (cognitive 20) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:52 — MixAnalyzer.decode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, loops 2, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlaybackService.completeNetworkOutputSwitch (cognitive 20) · ×1
  • PlaybackService.completeNetworkOutputSwitch (cognitive 20) app/src/main/java/com/aurora/music/playback/PlaybackService.kt:766 — PlaybackService.completeNetworkOutputSwitch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ComparisonPlayback.start (cognitive 20) · ×1
  • ComparisonPlayback.start (cognitive 20) app/src/main/java/com/aurora/music/playback/compare/ComparisonPlayback.kt:53 — ComparisonPlayback.start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AppearanceScreenKt.AppearanceScreen (cognitive 20) · ×1
  • AppearanceScreenKt.AppearanceScreen (cognitive 20) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:76 — AppearanceScreenKt.AppearanceScreen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), match/switch 2 (4 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlayerViewModel.maybeEnrichLocal (cognitive 20) · ×1
  • PlayerViewModel.maybeEnrichLocal (cognitive 20) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:780 — PlayerViewModel.maybeEnrichLocal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlayerViewModel.fillQueue (cognitive 20) · ×1
  • PlayerViewModel.fillQueue (cognitive 20) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1013 — PlayerViewModel.fillQueue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DownloadManager.doDownload (cognitive 20) · ×1
  • DownloadManager.doDownload (cognitive 20) core/src/main/kotlin/com/aurora/music/data/DownloadManager.kt:350 — DownloadManager.doDownload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlexLyricsKt.plexLyrics (cognitive 20) · ×1
  • PlexLyricsKt.plexLyrics (cognitive 20) core/src/main/kotlin/com/aurora/music/data/PlexLyrics.kt:10 — PlexLyricsKt.plexLyrics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AppleMusicClient.request (cognitive 20) · ×1
  • AppleMusicClient.request (cognitive 20) core/src/main/kotlin/com/aurora/music/data/remote/AppleMusicClient.kt:128 — AppleMusicClient.request has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, error handling 2, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlaybackReportTracker.update (cognitive 20) · ×1
  • PlaybackReportTracker.update (cognitive 20) core/src/main/kotlin/com/aurora/music/playback/PlaybackReportTracker.kt:32 — PlaybackReportTracker.update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DspChain.readOutput (cognitive 20) · ×1
  • DspChain.readOutput (cognitive 20) core/src/main/kotlin/com/aurora/music/playback/chain/DspChain.kt:107 — DspChain.readOutput has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConnectJson.command (cognitive 20) · ×1
  • ConnectJson.command (cognitive 20) core/src/main/kotlin/com/aurora/music/playback/network/endpoint/ConnectProtocol.kt:139 — ConnectJson.command has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, 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.
D2 · Cognitive Complexity · DesktopPlaybackEngine.run (cognitive 20) · ×1
  • DesktopPlaybackEngine.run (cognitive 20) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:428 — DesktopPlaybackEngine.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopPlaybackEngine.pump (cognitive 20) · ×1
  • DesktopPlaybackEngine.pump (cognitive 20) desktop/src/main/kotlin/com/aurora/music/desktop/audio/DesktopPlaybackEngine.kt:879 — DesktopPlaybackEngine.pump has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · StemSeparator.decodeStereo (cognitive 20) · ×1
  • StemSeparator.decodeStereo (cognitive 20) desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:167 — StemSeparator.decodeStereo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryScreenKt.LibListItem (cognitive 20) · ×1
  • LibraryScreenKt.LibListItem (cognitive 20) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:1269 — LibraryScreenKt.LibListItem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TypeKt.auroraTypography (cognitive 20) · ×1
  • TypeKt.auroraTypography (cognitive 20) desktop/src/main/kotlin/com/aurora/music/ui/theme/Type.kt:28 — TypeKt.auroraTypography has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), match/switch 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · CefBrowserSwing.onPaint (cognitive 20) · ×1
  • CefBrowserSwing.onPaint (cognitive 20) mac/src/main/java/org/cef/browser/CefBrowserSwing.java:263 — CefBrowserSwing.onPaint has cognitive complexity 20 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 6, ternaries 3 (4 pts), boolean chains 3 (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.
D2 · Cognitive Complexity · PrecisionAudioSink.activatePending (cognitive 19) · ×1
  • PrecisionAudioSink.activatePending (cognitive 19) app/src/main/java/com/aurora/music/playback/PrecisionAudioSink.kt:130 — PrecisionAudioSink.activatePending has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DsdExtractor.startAudio (cognitive 19) · ×1
  • DsdExtractor.startAudio (cognitive 19) app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:277 — DsdExtractor.startAudio has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · UsbGraphProcessor.getOutput (cognitive 19) · ×1
  • UsbGraphProcessor.getOutput (cognitive 19) app/src/main/java/com/aurora/music/playback/usb/UsbGraphProcessor.kt:134 — UsbGraphProcessor.getOutput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GlassControlsKt.GlassTabBar (cognitive 19) · ×1
  • GlassControlsKt.GlassTabBar (cognitive 19) app/src/main/java/com/aurora/music/ui/components/glass/GlassControls.kt:105 — GlassControlsKt.GlassTabBar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cognitive 19) · ×1
  • AudioOutputSettingsScreenKt.AudioOutputSettingsScreen (cognitive 19) app/src/main/java/com/aurora/music/ui/screens/settings/AudioOutputSettingsScreen.kt:45 — AudioOutputSettingsScreenKt.AudioOutputSettingsScreen has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CompanionVideoController.request (cognitive 19) · ×1
  • CompanionVideoController.request (cognitive 19) app/src/main/java/com/aurora/music/viewmodel/CompanionVideoController.kt:69 — CompanionVideoController.request has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BackupManager.restoreValidated (cognitive 19) · ×1
  • BackupManager.restoreValidated (cognitive 19) core/src/main/kotlin/com/aurora/music/data/BackupManager.kt:118 — BackupManager.restoreValidated has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ParamBandCodec.read (cognitive 19) · ×1
  • ParamBandCodec.read (cognitive 19) core/src/main/kotlin/com/aurora/music/data/ParametricFilter.kt:82 — ParamBandCodec.read has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · ProcessingRackCodec.read (cognitive 19) · ×1
  • ProcessingRackCodec.read (cognitive 19) core/src/main/kotlin/com/aurora/music/data/ProcessingRack.kt:168 — ProcessingRackCodec.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ListeningMath.estimate (cognitive 19) · ×1
  • ListeningMath.estimate (cognitive 19) core/src/main/kotlin/com/aurora/music/data/listening/ListeningLevels.kt:101 — ListeningMath.estimate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SoundCloudClient.attempt (cognitive 19) · ×1
  • SoundCloudClient.attempt (cognitive 19) core/src/main/kotlin/com/aurora/music/data/remote/SoundCloudClient.kt:112 — SoundCloudClient.attempt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · YouTubeMusicParser.results (cognitive 19) · ×1
  • YouTubeMusicParser.results (cognitive 19) core/src/main/kotlin/com/aurora/music/data/remote/YouTubeMusicParser.kt:77 — YouTubeMusicParser.results has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DspCoeffBuilder.build (cognitive 19) · ×1
  • DspCoeffBuilder.build (cognitive 19) core/src/main/kotlin/com/aurora/music/playback/DspCoeffBuilder.kt:69 — DspCoeffBuilder.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · VisualizerController.pushPcm (cognitive 19) · ×1
  • VisualizerController.pushPcm (cognitive 19) core/src/main/kotlin/com/aurora/music/playback/VisualizerController.kt:112 — VisualizerController.pushPcm has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · DsdHeaders.dffSoundProperties (cognitive 19) · ×1
  • DsdHeaders.dffSoundProperties (cognitive 19) core/src/main/kotlin/com/aurora/music/playback/dsd/DsdFormat.kt:77 — DsdHeaders.dffSoundProperties has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · ScopedMediaServer.handle (cognitive 19) · ×1
  • ScopedMediaServer.handle (cognitive 19) core/src/main/kotlin/com/aurora/music/playback/network/ScopedMediaServer.kt:77 — ScopedMediaServer.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LinuxOutputBackend.open (cognitive 19) · ×1
  • LinuxOutputBackend.open (cognitive 19) desktop/src/main/kotlin/com/aurora/music/desktop/audio/LinuxOutputBackend.kt:80 — LinuxOutputBackend.open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TimeStretcher.step (cognitive 19) · ×1
  • TimeStretcher.step (cognitive 19) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/MixDeck.kt:39 — TimeStretcher.step has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (8 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.
D2 · Cognitive Complexity · WebSignInKt.YouTubeMusicBrowser (cognitive 19) · ×1
  • WebSignInKt.YouTubeMusicBrowser (cognitive 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:235 — WebSignInKt.YouTubeMusicBrowser has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, error handling 2, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · EqualizerScreenKt.AutoEqPanel (cognitive 19) · ×1
  • EqualizerScreenKt.AutoEqPanel (cognitive 19) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329 — EqualizerScreenKt.AutoEqPanel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 2, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ComparisonViewModel.start (cognitive 19) · ×1
  • ComparisonViewModel.start (cognitive 19) desktop/src/main/kotlin/com/aurora/music/viewmodel/ComparisonViewModel.kt:49 — ComparisonViewModel.start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, error handling 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · UsbAudioDevice.openDevice (cognitive 19) · ×1
  • UsbAudioDevice.openDevice (cognitive 19) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDevice.kt:90 — UsbAudioDevice.openDevice has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, match/switch 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · UsbAudioDevice.configure (cognitive 19) · ×1
  • UsbAudioDevice.configure (cognitive 19) decent/decent-usb-audio-driver/src/main/kotlin/com/decent/usbaudio/UsbAudioDevice.kt:149 — UsbAudioDevice.configure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UsbAudioSink.play (cognitive 19) · ×1
  • UsbAudioSink.play (cognitive 19) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:612 — UsbAudioSink.play has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ReplayGainScanner.scan (cognitive 18) · ×1
  • ReplayGainScanner.scan (cognitive 18) app/src/main/java/com/aurora/music/data/ReplayGainScanner.kt:46 — ReplayGainScanner.scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 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.
D2 · Cognitive Complexity · ConvolutionProcessor.queueInput (cognitive 18) · ×1
  • ConvolutionProcessor.queueInput (cognitive 18) app/src/main/java/com/aurora/music/playback/ConvolutionProcessor.kt:69 — ConvolutionProcessor.queueInput has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MiniPlayerKt.GlassMiniPlayer (cognitive 18) · ×1
  • MiniPlayerKt.GlassMiniPlayer (cognitive 18) app/src/main/java/com/aurora/music/ui/components/MiniPlayer.kt:168 — MiniPlayerKt.GlassMiniPlayer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), match/switch 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LibraryScreenKt.AllOverview (cognitive 18) · ×1
  • LibraryScreenKt.AllOverview (cognitive 18) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:478 — LibraryScreenKt.AllOverview has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (18 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · NetworkOutputScreenKt.NetworkOutputControls (cognitive 18) · ×1
  • NetworkOutputScreenKt.NetworkOutputControls (cognitive 18) app/src/main/java/com/aurora/music/ui/screens/settings/NetworkOutputScreen.kt:45 — NetworkOutputScreenKt.NetworkOutputControls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerViewModel.persistQueue (cognitive 18) · ×1
  • PlayerViewModel.persistQueue (cognitive 18) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:485 — PlayerViewModel.persistQueue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ProcessingPresetBundle.read (cognitive 18) · ×1
  • ProcessingPresetBundle.read (cognitive 18) core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:121 — ProcessingPresetBundle.read has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), error handling 1, loops 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PrecisionFft.transform (cognitive 18) · ×1
  • PrecisionFft.transform (cognitive 18) core/src/main/kotlin/com/aurora/music/playback/engine/PrecisionConvolver.kt:14 — PrecisionFft.transform has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 4 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · ProductionRackProcessor.applyPrepared (cognitive 18) · ×1
  • ProductionRackProcessor.applyPrepared (cognitive 18) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionRackProcessor.kt:271 — ProductionRackProcessor.applyPrepared has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ParallelSchedule.copyDelaysFrom (cognitive 18) · ×1
  • ParallelSchedule.copyDelaysFrom (cognitive 18) core/src/main/kotlin/com/aurora/music/playback/engine/RackGraph.kt:158 — ParallelSchedule.copyDelaysFrom has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HapticPcmRing.drain (cognitive 18) · ×1
  • HapticPcmRing.drain (cognitive 18) core/src/main/kotlin/com/aurora/music/playback/haptics/HapticPcmRing.kt:62 — HapticPcmRing.drain has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryScreenKt.LibTab (cognitive 18) · ×1
  • LibraryScreenKt.LibTab (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:586 — LibraryScreenKt.LibTab has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · QueueScreenKt.QueueTrackRow (cognitive 18) · ×1
  • QueueScreenKt.QueueTrackRow (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:291 — QueueScreenKt.QueueTrackRow has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ProcessingPresetsScreenKt.ProcessingPresetsScreen (cognitive 18) · ×1
  • ProcessingPresetsScreenKt.ProcessingPresetsScreen (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:69 — ProcessingPresetsScreenKt.ProcessingPresetsScreen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 5, boolean chains 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · RecapSummaryKt.renderRecap (cognitive 18) · ×1
  • RecapSummaryKt.renderRecap (cognitive 18) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapSummary.kt:38 — RecapSummaryKt.renderRecap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlaybackForeground.setReceiverForeground (cognitive 17) · ×1
  • PlaybackForeground.setReceiverForeground (cognitive 17) app/src/main/java/com/aurora/music/playback/PlaybackForeground.kt:26 — PlaybackForeground.setReceiverForeground has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrecisionAudioSink.handleBuffer (cognitive 17) · ×1
  • PrecisionAudioSink.handleBuffer (cognitive 17) app/src/main/java/com/aurora/music/playback/PrecisionAudioSink.kt:176 — PrecisionAudioSink.handleBuffer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · YoutubeResolver.resolvePlayback (cognitive 17) · ×1
  • YoutubeResolver.resolvePlayback (cognitive 17) app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:211 — YoutubeResolver.resolvePlayback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 6, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DsdExtractor.readDffText (cognitive 17) · ×1
  • DsdExtractor.readDffText (cognitive 17) app/src/main/java/com/aurora/music/playback/dsd/DsdExtractor.kt:256 — DsdExtractor.readDffText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 6, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CreatePlaylistSheetKt.CreatePlaylistSheet (cognitive 17) · ×1
  • CreatePlaylistSheetKt.CreatePlaylistSheet (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/library/CreatePlaylistSheet.kt:67 — CreatePlaylistSheetKt.CreatePlaylistSheet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlaybackVideoKt.PlaybackVideo (cognitive 17) · ×1
  • PlaybackVideoKt.PlaybackVideo (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/player/PlaybackVideo.kt:39 — PlaybackVideoKt.PlaybackVideo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PlayerScreenKt.CoverOverlay (cognitive 17) · ×1
  • PlayerScreenKt.CoverOverlay (cognitive 17) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:966 — PlayerScreenKt.CoverOverlay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LiquidGlassKt.liquidGlass (cognitive 17) · ×1
  • LiquidGlassKt.liquidGlass (cognitive 17) app/src/main/java/com/aurora/music/ui/theme/LiquidGlass.kt:92 — LiquidGlassKt.liquidGlass has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerViewModel.startSonicRadio (cognitive 17) · ×1
  • PlayerViewModel.startSonicRadio (cognitive 17) app/src/main/java/com/aurora/music/viewmodel/PlayerViewModel.kt:1049 — PlayerViewModel.startSonicRadio has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 4, boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LyricTimingKt.withWordTiming (cognitive 17) · ×1
  • LyricTimingKt.withWordTiming (cognitive 17) core/src/main/kotlin/com/aurora/music/data/LyricTiming.kt:37 — LyricTimingKt.withWordTiming has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · VocalActivityAnalyzer.emit (cognitive 17) · ×1
  • VocalActivityAnalyzer.emit (cognitive 17) core/src/main/kotlin/com/aurora/music/data/VocalActivity.kt:188 — VocalActivityAnalyzer.emit has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · NavidromePlaceholder.matches (cognitive 17) · ×1
  • NavidromePlaceholder.matches (cognitive 17) core/src/main/kotlin/com/aurora/music/data/artwork/NavidromePlaceholder.kt:19 — NavidromePlaceholder.matches has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · Fft.transform (cognitive 17) · ×1
  • Fft.transform (cognitive 17) core/src/main/kotlin/com/aurora/music/playback/Fft.kt:29 — Fft.transform has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 4 (8 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · Resampler.resample (cognitive 17) · ×1
  • Resampler.resample (cognitive 17) desktop/src/main/kotlin/com/aurora/music/data/Chromaprint.kt:344 — Resampler.resample has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopMixPlayer.syncDecks (cognitive 17) · ×1
  • DesktopMixPlayer.syncDecks (cognitive 17) desktop/src/main/kotlin/com/aurora/music/desktop/audio/mix/DesktopMixPlayer.kt:83 — DesktopMixPlayer.syncDecks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, error handling 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DesktopPlayer.startSonicRadio (cognitive 17) · ×1
  • DesktopPlayer.startSonicRadio (cognitive 17) desktop/src/main/kotlin/com/aurora/music/desktop/player/DesktopPlayer.kt:908 — DesktopPlayer.startSonicRadio has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 4, boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CompanionVideo.request (cognitive 17) · ×1
  • CompanionVideo.request (cognitive 17) desktop/src/main/kotlin/com/aurora/music/desktop/video/CompanionVideo.kt:51 — CompanionVideo.request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TileMapKt.TileMap (cognitive 17) · ×1
  • TileMapKt.TileMap (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/components/TileMap.kt:128 — TileMapKt.TileMap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (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.
D2 · Cognitive Complexity · NavigationMenuScreenKt.NavEditRow (cognitive 17) · ×1
  • NavigationMenuScreenKt.NavEditRow (cognitive 17) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:116 — NavigationMenuScreenKt.NavEditRow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), 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.
D2 · Cognitive Complexity · UsbAudioSink.configure (cognitive 17) · ×1
  • UsbAudioSink.configure (cognitive 17) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:376 — UsbAudioSink.configure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · UsbAudioSink.startNativeEngineIfFlac (cognitive 17) · ×1
  • UsbAudioSink.startNativeEngineIfFlac (cognitive 17) decent/decent-usb-audio-wrapper-media3/src/main/kotlin/com/decent/usbaudio/media3/UsbAudioSink.kt:792 — UsbAudioSink.startNativeEngineIfFlac has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlaybackFades.tick (cognitive 16) · ×1
  • PlaybackFades.tick (cognitive 16) app/src/main/java/com/aurora/music/playback/PlaybackFades.kt:64 — PlaybackFades.tick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AndroidConnectHost.apply (cognitive 16) · ×1
  • AndroidConnectHost.apply (cognitive 16) app/src/main/java/com/aurora/music/playback/network/AndroidConnectHost.kt:105 — AndroidConnectHost.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · AuroraOnboardingKt.QuestionsScreen (cognitive 16) · ×1
  • AuroraOnboardingKt.QuestionsScreen (cognitive 16) app/src/main/java/com/aurora/music/ui/onboarding/AuroraOnboarding.kt:63 — AuroraOnboardingKt.QuestionsScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerSheetsKt.OutputDeviceSheet (cognitive 16) · ×1
  • PlayerSheetsKt.OutputDeviceSheet (cognitive 16) app/src/main/java/com/aurora/music/ui/screens/player/PlayerSheets.kt:164 — PlayerSheetsKt.OutputDeviceSheet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ExtensionsScreenKt.ExtensionsScreen (cognitive 16) · ×1
  • ExtensionsScreenKt.ExtensionsScreen (cognitive 16) app/src/main/java/com/aurora/music/ui/screens/settings/ExtensionsScreen.kt:22 — ExtensionsScreenKt.ExtensionsScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 2, boolean chains 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DjKeywords.merge (cognitive 16) · ×1
  • DjKeywords.merge (cognitive 16) core/src/main/kotlin/com/aurora/music/ai/DjKeywords.kt:174 — DjKeywords.merge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · BandlimitedResampler.readOutput (cognitive 16) · ×1
  • BandlimitedResampler.readOutput (cognitive 16) core/src/main/kotlin/com/aurora/music/playback/engine/BandlimitedResampler.kt:46 — BandlimitedResampler.readOutput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProductionRackProcessor.feedInput (cognitive 16) · ×1
  • ProductionRackProcessor.feedInput (cognitive 16) core/src/main/kotlin/com/aurora/music/playback/engine/ProductionRackProcessor.kt:185 — ProductionRackProcessor.feedInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · NetworkWaveSource.inspect (cognitive 16) · ×1
  • NetworkWaveSource.inspect (cognitive 16) core/src/main/kotlin/com/aurora/music/playback/network/audio/NetworkWaveSource.kt:19 — NetworkWaveSource.inspect has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, match/switch 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · Deck.fill (cognitive 16) · ×1
  • Deck.fill (cognitive 16) desktop/src/main/kotlin/com/aurora/music/desktop/audio/Deck.kt:163 — Deck.fill has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TitleBarKt.CaptionButton (cognitive 16) · ×1
  • TitleBarKt.CaptionButton (cognitive 16) desktop/src/main/kotlin/com/aurora/music/desktop/ui/TitleBar.kt:137 — TitleBarKt.CaptionButton has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · WebPage.popupRequest (cognitive 16) · ×1
  • WebPage.popupRequest (cognitive 16) desktop/src/main/kotlin/com/aurora/music/desktop/web/Chromium.kt:372 — WebPage.popupRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · SourcesSettingsScreenKt.PriorityRow (cognitive 16) · ×1
  • SourcesSettingsScreenKt.PriorityRow (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:272 — SourcesSettingsScreenKt.PriorityRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ListeningMapScreenKt.ListeningMapScreen (cognitive 16) · ×1
  • ListeningMapScreenKt.ListeningMapScreen (cognitive 16) desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:72 — ListeningMapScreenKt.ListeningMapScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: Destinations.kt → AuroraApp.kt, SettingsKeys.kt, SettingsStore.kt app/src/main/java/com/aurora/music/navigation/Destinations.kt — `app/src/main/java/com/aurora/music/navigation/Destinations.kt` changes together with 3 other files — `app/src/main/java/com/aurora/music/ui/AuroraApp.kt`, `core/src/main/kotlin/com/aurora/music/data/SettingsKeys.kt`, `core/src/main/kotlin/com/aurora/music/data/SettingsStore.kt` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (4 members, 38 shared lines) · ×1
  • Near-duplicate member family (4 members, 38 shared lines) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:69 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:69-173 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:78-200 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:69-174 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:78-201 — These 4 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' 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 · Near-duplicate member pair (366 shared lines) · ×1
  • Near-duplicate member pair (366 shared lines) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:154-1964 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:271-1792 — These two members are variants of one another: 366 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (248 shared lines) · ×1
  • Near-duplicate member pair (248 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:50 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:50-344 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:54-339 — These two members are variants of one another: 248 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (219 shared lines) · ×1
  • Near-duplicate member pair (219 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:45-304 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:42-301 — These two members are variants of one another: 219 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (180 shared lines) · ×1
  • Near-duplicate member pair (180 shared lines) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:48 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:48-285 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:48-284 — These two members are variants of one another: 180 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (164 shared lines) · ×1
  • Near-duplicate member pair (164 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:74 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:74-315 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:73-283 — These two members are variants of one another: 164 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (155 shared lines) · ×1
  • Near-duplicate member pair (155 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:76 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:76-295 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:78-325 — These two members are variants of one another: 155 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (120 shared lines) · ×1
  • Near-duplicate member pair (120 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:65 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:65-192 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:54-180 — These two members are variants of one another: 120 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (116 shared lines) · ×1
  • Near-duplicate member pair (116 shared lines) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:75 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:75-229 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:76-233 — These two members are variants of one another: 116 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (110 shared lines) · ×1
  • Near-duplicate member pair (110 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:386 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:386-504 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:381-498 — These two members are variants of one another: 110 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (105 shared lines) · ×1
  • Near-duplicate member pair (105 shared lines) app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:151 — app/src/main/java/com/aurora/music/ui/screens/player/QueueScreen.kt:151-330 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/QueueScreen.kt:104-247 — These two members are variants of one another: 105 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (95 shared lines) · ×1
  • Near-duplicate member pair (95 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:40 — app/src/main/java/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:40-173 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ComparisonScreen.kt:30-161 — These two members are variants of one another: 95 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (90 shared lines) · ×1
  • Near-duplicate member pair (90 shared lines) app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:45 — app/src/main/java/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:45-187 | desktop/src/main/kotlin/com/aurora/music/ui/components/TrackPlaylistsSheet.kt:48-187 — These two members are variants of one another: 90 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (79 shared lines) · ×1
  • Near-duplicate member pair (79 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:26 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:26-120 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningTargetLibraryDialog.kt:24-117 — These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (75 shared lines) · ×1
  • Near-duplicate member pair (75 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:341 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:341-520 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:329-480 — These two members are variants of one another: 75 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (72 shared lines) · ×1
  • Near-duplicate member pair (72 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:77 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:77-244 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:66-230 — These two members are variants of one another: 72 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (71 shared lines) · ×1
  • Near-duplicate member pair (71 shared lines) app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:97 — app/src/main/java/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:97-178 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/SmartPlaylistEditScreen.kt:104-192 — These two members are variants of one another: 71 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (62 shared lines) · ×1
  • Near-duplicate member pair (62 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:37 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:37-116 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:31-109 — These two members are variants of one another: 62 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (60 shared lines) · ×1
  • Near-duplicate member pair (60 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:48 — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:48-155 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:46-134 — These two members are variants of one another: 60 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (58 shared lines) · ×1
  • Near-duplicate member pair (58 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:108 — app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:108-331 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsScreen.kt:114-303 — These two members are variants of one another: 58 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (56 shared lines) · ×1
  • Near-duplicate member pair (56 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:62 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:62-158 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:64-146 — These two members are variants of one another: 56 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (54 shared lines) · ×1
  • Near-duplicate member pair (54 shared lines) app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:407 — app/src/main/java/com/aurora/music/ui/screens/auth/SignInScreen.kt:407-489 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/SignInScreen.kt:428-508 — These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (50 shared lines) · ×1
  • Near-duplicate member pair (50 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:102 — app/src/main/java/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:102-164 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppUpdateCard.kt:52-114 — 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.
D4 · Code Duplication · Near-duplicate member pair (48 shared lines) · ×1
  • Near-duplicate member pair (48 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:170 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:170-227 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:169-226 — These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (46 shared lines) · ×1
  • Near-duplicate member pair (46 shared lines) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:77-160 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:78-163 — These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (45 shared lines) · ×1
  • Near-duplicate member pair (45 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:47 — app/src/main/java/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:47-147 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AboutSettingsScreen.kt:62-160 — These two members are variants of one another: 45 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (44 shared lines) · ×1
  • Near-duplicate member pair (44 shared lines) app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:65 — app/src/main/java/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:65-133 | desktop/src/main/kotlin/com/aurora/music/ui/screens/youtube/YouTubeDownloadScreen.kt:69-143 — 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 · Near-duplicate member pair (36 shared lines) · ×1
  • Near-duplicate member pair (36 shared lines) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:357 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:357-411 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:217-259 — These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (35 shared lines) · ×1
  • Near-duplicate member pair (35 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:161 — app/src/main/java/com/aurora/music/ui/screens/settings/AccountsScreen.kt:161-207 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AccountsScreen.kt:149-196 — These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (27 shared lines) · ×1
  • Near-duplicate member pair (27 shared lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:326 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:326-377 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:294-331 — These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (18 shared lines) · ×1
  • Near-duplicate member pair (18 shared lines) app/src/main/java/com/aurora/music/ui/screens/stats/RecapInbox.kt:86 — app/src/main/java/com/aurora/music/ui/screens/stats/RecapInbox.kt:86-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/RecapInbox.kt:84-141 — These two members are variants of one another: 18 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 (116 corresponding lines) · ×1
  • Edited copy of a member (116 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:170 — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:170-285 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt:179-294 — These two members are one piece of code written twice and then edited apart: 116 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 · Members sharing a duplicated core (8 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (8 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:126 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:126-559 | app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:76-144 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:724-813 | app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:282-335 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:161-607 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:79-139 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:826-927 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:338-444 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' 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 8 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:37 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:37-167 | app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:30-133 | app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:37-142 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:36-166 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:29-132 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:36-141 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' 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 6 times.
D4 · Code Duplication · Edited copy of a member (113 corresponding lines) · ×1
  • Edited copy of a member (113 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27-139 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:27-139 — These two members are one piece of code written twice and then edited apart: 113 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 (108 corresponding lines) · ×1
  • Edited copy of a member (108 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:84 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:84-191 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:84-191 — These two members are one piece of code written twice and then edited apart: 108 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 (98 corresponding lines) · ×1
  • Edited copy of a member (98 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:71 — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:71-168 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:76-206 — These two members are one piece of code written twice and then edited apart: 98 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/com/aurora/music/ui/screens/player/ConcertControls.kt:249 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:249-336 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:250-337 — 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 (123 corresponding lines) · ×1
  • Edited copy of a member (123 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:56 — app/src/main/java/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:56-178 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/VisualizerSettingsScreen.kt:57-179 — These two members are one piece of code written twice and then edited apart: 123 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 (66 corresponding lines) · ×1
  • Edited copy of a member (66 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:507 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:507-572 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:501-566 — These two members are one piece of code written twice and then edited apart: 66 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/com/aurora/music/ui/screens/detail/TagEditScreen.kt:70 — app/src/main/java/com/aurora/music/ui/screens/detail/TagEditScreen.kt:70-172 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/TagEditScreen.kt:64-152 — 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 (63 corresponding lines) · ×1
  • Edited copy of a member (63 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:246 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:246-308 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:230-292 — These two members are one piece of code written twice and then edited apart: 63 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 (111 corresponding lines) · ×1
  • Edited copy of a member (111 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:63 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:63-176 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:68-178 — These two members are one piece of code written twice and then edited apart: 111 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 (81 corresponding lines) · ×1
  • Edited copy of a member (81 corresponding lines) app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:52 — app/src/main/java/com/aurora/music/mix/MixAnalyzer.kt:52-132 | desktop/src/main/kotlin/com/aurora/music/mix/MixAnalyzer.kt:66-152 — These two members are one piece of code written twice and then edited apart: 81 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 (76 corresponding lines) · ×1
  • Edited copy of a member (76 corresponding lines) app/src/main/java/com/aurora/music/mix/StemSeparator.kt:92 — app/src/main/java/com/aurora/music/mix/StemSeparator.kt:92-167 | desktop/src/main/kotlin/com/aurora/music/mix/StemSeparator.kt:89-164 — These two members are one piece of code written twice and then edited apart: 76 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 (80 corresponding lines) · ×1
  • Edited copy of a member (80 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:47 — app/src/main/java/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:47-146 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PlaybackSettingsScreen.kt:42-121 — These two members are one piece of code written twice and then edited apart: 80 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 (67 corresponding lines) · ×1
  • Edited copy of a member (67 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:979 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:979-1055 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:760-826 — These two members are one piece of code written twice and then edited apart: 67 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 (83 corresponding lines) · ×1
  • Edited copy of a member (83 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:41 — app/src/main/java/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:41-128 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SonicSettingsScreen.kt:39-121 — These two members are one piece of code written twice and then edited apart: 83 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 (62 corresponding lines) · ×1
  • Edited copy of a member (62 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:290 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:290-359 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:306-367 — These two members are one piece of code written twice and then edited apart: 62 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 (60 corresponding lines) · ×1
  • Edited copy of a member (60 corresponding lines) app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:73 — app/src/main/java/com/aurora/music/ui/theme/ThemeStyles.kt:73-132 | desktop/src/main/kotlin/com/aurora/music/ui/theme/ThemeStyles.kt:71-130 — These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:51 — app/src/main/java/com/aurora/music/ui/screens/player/ReverbQuickControls.kt:51-100 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:64-116 — These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (55 corresponding lines) · ×1
  • Edited copy of a member (55 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:278 — app/src/main/java/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:278-332 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/NavigationMenuScreen.kt:125-191 — These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (42 corresponding lines) · ×1
  • Edited copy of a member (42 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:50 — app/src/main/java/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:50-91 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/IntegrationsSettingsScreen.kt:51-93 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:403 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:403-433 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:403-433 — 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 (41 corresponding lines) · ×1
  • Edited copy of a member (41 corresponding lines) desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:70 — desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:70-110 | desktop/src/main/kotlin/com/aurora/music/desktop/ui/Shortcuts.kt:112-153 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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, 24+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 24+ corresponding lines) app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:105 — app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:105-128 | app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:130-153 | app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:155-181 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:298 — app/src/main/java/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:298-336 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AppearanceScreen.kt:328-367 — 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 (5 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 17+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/auth/AppleMusicStep.kt:20 — app/src/main/java/com/aurora/music/ui/screens/auth/AppleMusicStep.kt:20-39 | app/src/main/java/com/aurora/music/ui/screens/auth/SoundCloudStep.kt:23-39 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:212-232 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:371-389 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:437-455 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 24+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 24+ corresponding lines) core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:233 — core/src/main/kotlin/com/aurora/music/data/ProcessingPresetBundle.kt:233-260 | core/src/main/kotlin/com/aurora/music/data/ProcessingRack.kt:200-231 | core/src/main/kotlin/com/aurora/music/data/ir/ImpulseLibraryCodec.kt:149-180 | core/src/main/kotlin/com/aurora/music/data/tuning/TuningProjectCodec.kt:257-280 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 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, 20+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 20+ corresponding lines) desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:110 — desktop/src/main/kotlin/com/aurora/music/ui/screens/player/ConnectDevices.kt:110-129 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerSheets.kt:140-159 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/AudioOutputSettingsScreen.kt:212-233 — These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:307 — app/src/main/java/com/aurora/music/viewmodel/AuthViewModel.kt:307-327 | desktop/src/main/kotlin/com/aurora/music/viewmodel/AuthViewModel.kt:152-170 | desktop/src/main/kotlin/com/aurora/music/viewmodel/AuthViewModel.kt:223-241 — 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 (6 members, 6+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 6+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:311 — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:311-317 | app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:575-581 | app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:494-499 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:295-301 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:569-575 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:491-496 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
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/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:751 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:751-766 | app/src/main/java/com/aurora/music/ui/screens/settings/SettingsComponents.kt:261-272 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:594-609 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SettingsComponents.kt:330-342 — 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 (3 members, 7+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 7+ corresponding lines) core/src/main/kotlin/com/aurora/music/data/merged/FeatureBorrower.kt:40 — core/src/main/kotlin/com/aurora/music/data/merged/FeatureBorrower.kt:40-47 | core/src/main/kotlin/com/aurora/music/data/merged/FeatureBorrower.kt:68-74 | core/src/main/kotlin/com/aurora/music/data/merged/FeatureBorrower.kt:76-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 8+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 8+ corresponding lines) core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:64 — core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:64-75 | core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:77-88 | core/src/main/kotlin/com/aurora/music/data/ListenBrainzScrobbler.kt:38-45 | core/src/main/kotlin/com/aurora/music/data/ListenBrainzScrobbler.kt:47-54 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 6+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 6+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:217 — app/src/main/java/com/aurora/music/ui/screens/aidj/AiDjControls.kt:217-222 | app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:291-296 | desktop/src/main/kotlin/com/aurora/music/ui/screens/aidj/AiDjControls.kt:219-224 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:291-296 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 7+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 7+ corresponding lines) app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:43 — app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:43-49 | app/src/main/java/com/aurora/music/viewmodel/RadioViewModel.kt:63-69 | desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt:41-47 | desktop/src/main/kotlin/com/aurora/music/viewmodel/RadioViewModel.kt:61-67 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 9+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 9+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/settings/OutputRateSettings.kt:56 — app/src/main/java/com/aurora/music/ui/screens/settings/OutputRateSettings.kt:56-64 | app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:198-206 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:198-206 — 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 copies of one member (3 members, 13+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 13+ corresponding lines) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1059 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:1059-1071 | desktop/src/main/kotlin/com/aurora/music/ui/components/LoadingIndicators.kt:85-98 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:830-842 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 10+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 10+ corresponding lines) app/src/main/java/com/aurora/music/playback/network/AndroidConnectHost.kt:186 — app/src/main/java/com/aurora/music/playback/network/AndroidConnectHost.kt:186-195 | core/src/main/kotlin/com/aurora/music/playback/network/DlnaClient.kt:298-308 | core/src/main/kotlin/com/aurora/music/playback/network/endpoint/RendererClient.kt:127-136 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (5 members, 4+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 4+ corresponding lines) app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:54 — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:54-57 | core/src/main/kotlin/com/aurora/music/data/remote/MusicBrainzClient.kt:98-105 | core/src/main/kotlin/com/aurora/music/data/remote/SquigClient.kt:88-91 | desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt:55-58 | desktop/src/main/kotlin/com/aurora/music/ui/components/TileMap.kt:96-100 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 · Duplicated block (75 lines × 2) · ×1
  • Duplicated block (75 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:269 — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:269-343 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:138-212 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:269` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (97 lines × 2) · ×1
  • Duplicated block (97 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:91 — app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:91-187 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt:82-178 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/SongSourcesMenu.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/SongSourcesMenu.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `found` to `List<SourceCopy>?` in one and `List<SourceCopy>? = null` 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.
D4 · Code Duplication · Duplicated block (112 lines × 2) · ×1
  • Duplicated block (112 lines × 2) app/src/main/java/com/aurora/music/data/SonicFeatures.kt:25 — app/src/main/java/com/aurora/music/data/SonicFeatures.kt:25-136 | desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt:25-136 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicFeatures.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicFeatures.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (121 lines × 2) · ×1
  • Duplicated block (121 lines × 2) app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:80 — app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:80-200 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:81-201 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:80` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (51 lines × 2) · ×1
  • Duplicated block (51 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:89 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:89-139 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:89-139 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerScreen.kt:89` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (42 lines × 2) · ×1
  • Duplicated block (42 lines × 2) app/src/main/java/com/aurora/music/ui/components/Waveform.kt:99 — app/src/main/java/com/aurora/music/ui/components/Waveform.kt:99-140 | desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt:98-139 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/Waveform.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/Waveform.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Waveform.kt:99` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (63–64 lines × 2) · ×1
  • Duplicated block (63–64 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:193 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:193-256 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:169-231 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:193` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (83 lines × 2) · ×1
  • Duplicated block (83 lines × 2) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:68 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:68-150 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:69-151 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:68` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (69–70 lines × 2) · ×1
  • Duplicated block (69–70 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:75 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:75-144 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:79-147 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:75` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (2–32 lines × 4) · ×1
  • Duplicated block (2–32 lines × 4) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:31 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:31-62 | app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:85-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:31-62 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:85-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:85` 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (23–26 lines × 2) · ×1
  • Duplicated block (23–26 lines × 2) app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:129 — app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:129-151 | desktop/src/main/kotlin/com/aurora/music/ui/screens/auth/WebSignIn.kt:268-293 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/auth/YouTubeMusicStep.kt:129` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (103 lines × 2) · ×1
  • Duplicated block (103 lines × 2) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:71 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:71-173 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:72-174 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:71` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×1
  • Duplicated block (22–23 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1772 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1772-1794 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1669-1690 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (99 lines × 2) · ×1
  • Duplicated block (99 lines × 2) app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:312 — app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:312-410 | desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt:304-402 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/whatsnew/WhatsNewTour.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (45 lines × 2) · ×1
  • Duplicated block (45 lines × 2) app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt:66 — app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt:66-110 | desktop/src/main/kotlin/com/aurora/music/ui/components/LikeHeart.kt:81-125 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/LikeHeart.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/LikeHeart.kt` as WHOLE FILES: 95% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (87 lines × 2) · ×1
  • Duplicated block (87 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:48 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:48-134 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:44-130 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (56 lines × 2) · ×1
  • Duplicated block (56 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:28 — app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:28-83 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:26-81 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (85 lines × 2) · ×1
  • Duplicated block (85 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:39 — app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:39-123 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:38-122 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.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. Note first that the copies are not typed on the same thing: `BackHandler` names `androidx.activity.compose.BackHandler` in one and `androidx.compose.ui.backhandler.BackHandler` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (19 lines × 4) · ×1
  • Duplicated block (19 lines × 4) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:102 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:102-120 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:120-138 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:103-121 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:121-139 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:102` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (47 lines × 2) · ×1
  • Duplicated block (47 lines × 2) app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:47 — app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:47-93 | desktop/src/main/kotlin/com/aurora/music/desktop/audio/compare/DesktopComparison.kt:53-99 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/playback/compare/ComparisonRenderer.kt:45` calls `OptIn` and `desktop/src/main/kotlin/com/aurora/music/desktop/audio/compare/DesktopComparison.kt:50` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16–18 lines × 2) · ×1
  • Duplicated block (16–18 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1181 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1181-1198 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1104-1119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1181` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–18 lines × 2) · ×1
  • Duplicated block (14–18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:350 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:350-367 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:436-449 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×1
  • Duplicated block (17–18 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:381 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:381-397 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:330-347 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:330` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:380` calls `MusicHapticsMenuItem`, `DropdownMenuItem` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:330` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (14–16 lines × 2) · ×1
  • Duplicated block (14–16 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:518 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:518-533 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:523-536 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:518` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (65 lines × 2) · ×1
  • Duplicated block (65 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:272 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:272-336 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:273-337 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:272` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:348 — app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt:348-362 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:303-318 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/PlayerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:303` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–17 lines × 2) · ×1
  • Duplicated block (15–17 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:160 — app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:160-176 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt:141-155 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/StorageSettingsScreen.kt` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×1
  • Duplicated block (14–15 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:161 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:161-175 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:144-157 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingPresetsScreen.kt:161` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (64 lines × 2) · ×1
  • Duplicated block (64 lines × 2) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:23 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:23-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt:23-86 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerCanvas.kt` as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1515 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1515-1528 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1473-1484 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1515` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×1
  • Duplicated block (13–14 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1995 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1995-2008 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1821-1833 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1995` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (3–14 lines × 3) · ×1
  • Duplicated block (3–14 lines × 3) app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:89 — app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:89-102 | app/src/main/java/com/aurora/music/ui/screens/stats/ListeningStatsScreen.kt:85-87 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt:89-102 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/InsightsScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/stats/InsightsScreen.kt:89` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:89 — app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:89-100 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:107-118 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:90-101 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:108-119 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:89` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (17–19 lines × 2) · ×1
  • Duplicated block (17–19 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1110 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1110-1126 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1068-1086 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1110` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×1
  • Duplicated block (11–12 lines × 2) app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:379 — app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:379-389 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:360-371 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:379` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–11 lines × 4) · ×1
  • Duplicated block (4–11 lines × 4) app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:144 — app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:144-147 | app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:246-256 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:145-148 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:299-309 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:246` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:312` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:259` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (3–11 lines × 3) · ×1
  • Duplicated block (3–11 lines × 3) app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:756 — app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:756-766 | app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:772-774 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:599-609 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:756` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:755` calls `Row`, `fillMaxWidth`, `Text` and `app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:772` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (71 lines × 2) · ×1
  • Duplicated block (71 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:65 — app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:65-135 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:139-209 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:65` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (82 lines × 2) · ×1
  • Duplicated block (82 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:336 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:336-417 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:333-414 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:490 — desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:490-500 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:392-400 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:490` 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, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:402` calls `Box`, `fillMaxWidth`, `padding` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:501` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (4–10 lines × 3) · ×1
  • Duplicated block (4–10 lines × 3) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:278 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:278-287 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:667-670 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:137-146 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:278` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:666` calls `IconButton`, `size`, `background` and `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:278` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8–9 lines × 4) · ×1
  • Duplicated block (8–9 lines × 4) app/src/main/java/com/aurora/music/data/SonicEngine.kt:113 — app/src/main/java/com/aurora/music/data/SonicEngine.kt:113-121 | app/src/main/java/com/aurora/music/data/SonicEngine.kt:202-209 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:87-95 | desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt:176-183 — before extracting anything, compare `app/src/main/java/com/aurora/music/data/SonicEngine.kt` and `desktop/src/main/kotlin/com/aurora/music/data/SonicEngine.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (53 lines × 2) · ×1
  • Duplicated block (53 lines × 2) app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:292 — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:292-344 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt:291-343 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:292` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (55 lines × 2) · ×1
  • Duplicated block (55 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:70 — app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:70-124 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:70-124 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:70` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:202 — app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:202-237 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt:204-239 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SignalPathScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (86 lines × 2) · ×1
  • Duplicated block (86 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:52 — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:52-137 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:52-137 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:52` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–8 lines × 4) · ×1
  • Duplicated block (6–8 lines × 4) app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:309 — app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:309-314 | app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:168-175 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:271-276 | desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:142-149 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:309` 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 before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/stats/ListeningMapScreen.kt:165` calls `Spacer`, `height`, `calculateBottomPadding` and `app/src/main/java/com/aurora/music/ui/screens/settings/DetailedStatsScreen.kt:306` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (2–8 lines × 5) · ×1
  • Duplicated block (2–8 lines × 5) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:196 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:196-203 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:288-289 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:321-328 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:147-148 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:185-192 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:137 — app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:137-143 | desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt:200-207 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/PlaybackDock.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/PlaybackDock.kt:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (122 lines × 2) · ×1
  • Duplicated block (122 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:26 — app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:26-147 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt:26-147 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackAdvancedControls.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/RackAdvancedControls.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.
D4 · Code Duplication · Duplicated block (2–7 lines × 6) · ×1
  • Duplicated block (2–7 lines × 6) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1266 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1266-1272 | app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1326-1327 | app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1443-1449 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1238-1244 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1291-1292 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1425-1431 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. 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 before the matched lines, `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1266` calls `playNext`, `confirm`, `appString` and `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1326` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75 — app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75-81 | app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:138-144 | app/src/main/java/com/aurora/music/ui/screens/settings/SettingsScreen.kt:168-174 | desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:210-216 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/Sidebar.kt:75` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/components/TabletNavigation.kt:207` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/components/TabletNavigation.kt:135` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (4–7 lines × 4) · ×1
  • Duplicated block (4–7 lines × 4) app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:352 — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:352-358 | app/src/main/java/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:148-151 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:353-359 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ReverbSettingsScreen.kt:222-225 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:352` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt:360` calls `pointerHoverIcon` and `app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:359` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475-481 | app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:103-109 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:121-127 | app/src/main/java/com/aurora/music/ui/screens/settings/EqualizerScreen.kt:428-433 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:104-110 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:122-128 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt` and `app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:475` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×1
  • Duplicated block (6 lines × 4) app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:48 — app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:48-53 | app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:58-63 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:47-52 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:57-62 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5–6 lines × 2) · ×1
  • Duplicated block (5–6 lines × 2) app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1657 — app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1657-1662 | desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1175-1179 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1657` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/AuroraApp.kt:1656` calls `popBackStack` and `desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt:1174` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×1
  • Duplicated block (12–13 lines × 2) app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:26 — app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:26-38 | desktop/src/main/kotlin/com/aurora/music/ui/components/GuestLikesPrompt.kt:26-37 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/components/GuestLikesPrompt.kt` as WHOLE FILES: 98% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/components/GuestLikesPrompt.kt:26` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (3–6 lines × 4) · ×1
  • Duplicated block (3–6 lines × 4) app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:606 — app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:606-611 | app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:730-732 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:606-611 | desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt:730-732 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/visualizer/VisualizerRenderers.kt` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 8) · ×1
  • Duplicated block (7 lines × 8) app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:136 — app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:136-142 | app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:80-86 | app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:79-85 | app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:78-84 | app/src/main/java/com/aurora/music/ui/screens/radio/RadioScreen.kt:92-98 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:80-86 | desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastsScreen.kt:79-85 | desktop/src/main/kotlin/com/aurora/music/ui/screens/radio/RadioScreen.kt:93-99 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/explore/ExploreScreen.kt:136` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5 lines × 6) · ×1
  • Duplicated block (5 lines × 6) app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:67 — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:67-71 | app/src/main/java/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:62-66 | app/src/main/java/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:72-76 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:66-70 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/OutputPresetBindingsScreen.kt:61-65 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/PresetRulesScreen.kt:71-75 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (2–5 lines × 8) · ×1
  • Duplicated block (2–5 lines × 8) app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:528 — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:528-529 | app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:131-132 | app/src/main/java/com/aurora/music/ui/screens/library/LibraryScreen.kt:787-788 | app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:328-332 | desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt:344-345 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/FolderScreen.kt:127-128 | desktop/src/main/kotlin/com/aurora/music/ui/screens/library/LibraryScreen.kt:900-901 | desktop/src/main/kotlin/com/aurora/music/ui/screens/search/SearchScreen.kt:355-359 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:328` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/aurora/music/ui/screens/search/SearchScreen.kt:328` calls `contains` and `app/src/main/java/com/aurora/music/ui/screens/library/FolderScreen.kt:131` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (44 lines × 2) · ×1
  • Duplicated block (44 lines × 2) app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:529 — app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:529-572 | desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:523-566 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/settings/ProcessingRackScreen.kt:529` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (2–5 lines × 4) · ×1
  • Duplicated block (2–5 lines × 4) app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:131 — app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:131-132 | app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt:313-314 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:80-84 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt:178-182 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/LyricsScreen.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/LyricsScreen.kt` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:139 — app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:139-145 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:134-140 | desktop/src/main/kotlin/com/aurora/music/ui/screens/player/PlayerScreen.kt:684-690 — before extracting anything, compare `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` and `desktop/src/main/kotlin/com/aurora/music/ui/screens/player/NowPlayingPanes.kt` as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/aurora/music/ui/screens/player/NowPlayingPanes.kt:139` 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.
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: :core — :core: abstractness 0.04, instability 0.00, distance 0.96 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
X15 · Unvalidated length from an untrusted reader · Length read from the parsed input is spent without ever being bounded · ×1
  • Length read from the parsed input is spent without ever being bounded core/src/main/kotlin/com/aurora/music/data/VocalActivity.kt:47 — `onsets` is read from the bytes being parsed at line 45 (`int`), then used to size a `ByteArray` at line 47 — and nowhere in its scope is `onsets` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 32-bit length asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `onsets` against the bytes actually remaining and a maximum the format allows before allocating.
Minor — 116 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt:296 — `!SPCLIENT_PATH.containsMatchIn(path) || ".." in path` appears character-identically in 2 files — app/src/main/java/com/aurora/music/data/SpotifyWebPlayer.kt, desktop/src/main/kotlin/com/aurora/music/desktop/web/SpotifyWeb.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt:105 — `!busy && bindable && profile.routeKey == route.route.key` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ListeningLevelsScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:71 — `!busy && draft != null && draft != saved` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt:64 — `!busy && draft != null && rules.size < 24` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ArtistSeparatorsScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt:230 — `!busy && fitJob == null && loadError == null` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningProjectsScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt:114 — `!busy && options != null && options == reviewed && preview != null` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ImpulsePreparationDialog.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt:111 — `!busy && source.isNotBlank() && name.isNotBlank()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningMeasurementDialogs.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt:139 — `!busy && text.isNotBlank() && (preview == null || appendPlan?.isSuccess == true)` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/RackEqTextDialogs.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt:321 — `!centred && hypot(centre.x / r.width, centre.y / r.height) > 0.05f` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/player/ConcertControls.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConcertControls.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt:190 — `!convolutionEnabled && audio != null && rack != null` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/ConvolutionLibraryScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt:125 — `!current.updateAvailable || current.checking || current.download != UpdateDownload.IDLE || downloadJob?.isActive == true` appears character-identically in 2 files — app/src/main/java/com/aurora/music/data/updates/AppUpdater.kt, desktop/src/main/kotlin/com/aurora/music/desktop/updates/DesktopUpdater.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/AuroraApp.kt:514 — `!drawerNavigationPending && !drawerState.isAnimationRunning` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/AuroraApp.kt, desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.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 core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt:67 — `!enabled || song.title.isBlank() || song.artist.isBlank()` appears character-identically in 2 files — core/src/main/kotlin/com/aurora/music/data/LastfmScrobbler.kt, core/src/main/kotlin/com/aurora/music/data/ListenBrainzScrobbler.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt:97 — `!id.matches(VIDEO_ID) || item.duration <= 0` appears character-identically in 2 files — app/src/main/java/com/aurora/music/playback/YoutubeResolver.kt, desktop/src/main/kotlin/com/aurora/music/desktop/youtube/YoutubeResolver.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:123 — `!inChannelImage && channelTitle.isBlank()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt, desktop/src/main/kotlin/com/aurora/music/data/remote/PodcastClient.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt:527 — `!info.isArtist && s.albumId.isNotBlank()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/detail/DetailScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/detail/DetailScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt:61 — `!insights.enabled || onShowOnMap == null` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/stats/ListeningHistoryScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/AuroraApp.kt:210 — `!it.checking && (it.checked || it.error != null)` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/AuroraApp.kt, desktop/src/main/kotlin/com/aurora/music/ui/AuroraApp.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt:252 — `!it.isCompleted || it.getCompleted().isNotEmpty()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/viewmodel/LibraryViewModel.kt, desktop/src/main/kotlin/com/aurora/music/viewmodel/LibraryViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt:225 — `!latestAdvanced || latestBands.isEmpty()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/EqEditor.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/EqEditor.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt:128 — `!linkLimits && mode == TuningChannelMode.INDEPENDENT` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/TuningFitSettingsDialog.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt:323 — `!noneSelected && (mergeKeys.isEmpty() || key in mergeKeys)` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/settings/SourcesSettingsScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/playback/network/audio/DirectNetworkPreparer.kt:42 — `!outputDirectory.isDirectory && !outputDirectory.mkdirs()` appears character-identically in 2 files — app/src/main/java/com/aurora/music/playback/network/audio/DirectNetworkPreparer.kt, app/src/main/java/com/aurora/music/playback/network/audio/ProcessedNetworkRenderer.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 core/src/main/kotlin/com/aurora/music/data/remote/JellyfinClient.kt:72 — `!s.startsWith("http://") && !s.startsWith("https://")` appears character-identically in 2 files — core/src/main/kotlin/com/aurora/music/data/remote/JellyfinClient.kt, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt:158 — `!state.building && project.clips.size >= 2` appears character-identically in 2 files — app/src/main/java/com/aurora/music/ui/screens/player/MixScreen.kt, desktop/src/main/kotlin/com/aurora/music/ui/screens/player/MixScreen.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.
  • + 15 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×40
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/AutoEqRepository.kt:43 — `ensureIndex` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/CueLibrary.kt:59 — `granted` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/LocalLibrary.kt:165 — `requestMediaScan` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/LyricsTranslator.kt:80 — `packs` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/PlacesStore.kt:101 — `fix` swallows every exception into `false` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/ProfileImages.kt:90 — `imageUrl` swallows every exception into `""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/StorageInventory.kt:15 — `diskBytes` swallows every exception into `0L` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/TagEditor.kt:94 — `firstOrEmpty` swallows every exception into `""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/data/remote/PodcastClient.kt:45 — `search` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/extensions/ExtensionManager.kt:286 — `readIndex` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/playback/PlaybackLibraryBrowser.kt:91 — `searchQueue` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/playback/network/AndroidConnectHost.kt:57 — `status` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/playback/network/endpoint/RendererEndpoint.kt:58 — `reachableAddresses` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch app/src/main/java/com/aurora/music/ui/screens/podcasts/PodcastDetailScreen.kt:178 — `formatDate` swallows every exception into `""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch core/src/main/kotlin/com/aurora/music/ai/DjVoice.kt:88 — `wavSeconds` 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 core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:69 — `personalShelves` swallows every exception into `emptyList()` — 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 core/src/main/kotlin/com/aurora/music/data/DownloadManager.kt:345 — `totalBytes` swallows every exception into `0L` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch core/src/main/kotlin/com/aurora/music/data/DownloadManager.kt:449 — `loadIndex` swallows every exception into `emptyMap()` — 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 core/src/main/kotlin/com/aurora/music/data/DownloadManager.kt:463 — `loadCollections` swallows every exception into `emptyList()` — 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 core/src/main/kotlin/com/aurora/music/data/GuestLikes.kt:35 — `load` swallows every exception into `emptyMap()` — 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 core/src/main/kotlin/com/aurora/music/data/JellyfinBackend.kt:99 — `items` swallows every exception into `emptyList()` — 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 core/src/main/kotlin/com/aurora/music/data/JellyfinBackend.kt:144 — `starredCount` 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 core/src/main/kotlin/com/aurora/music/data/LyricsRepository.kt:226 — `searchUrl` swallows every exception into `emptyList()` — 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 core/src/main/kotlin/com/aurora/music/data/MediaBackend.kt:202 — `shelf` swallows every exception into `emptyList()` — 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 core/src/main/kotlin/com/aurora/music/data/PlayHistoryStore.kt:234 — `load` swallows every exception into `emptyList()` — 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.
  • + 15 more in this group — see findings.md.
AX6 · Interface segregation · Fat interface · ×14
  • Fat interface: MediaBackend (21 abstract methods) core/src/main/kotlin/com/aurora/music/data/MediaBackend.kt:16 — `MediaBackend` declares 21 abstract methods: `ping`, `home`, `allAlbums`, `allArtists`, `allPlaylists`, `allSongs`, `starredSongs`, `starredCount`, `starredIds`, `songFor`, `search`, `scrobble`, `radio`, `createPlaylist`, `updatePlaylist`, `deletePlaylist`, `setStarred`, `detail`, `serverLyrics`, `streamUrl`, `coverArtUrl`. 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: JellyfinApi (24 abstract methods) core/src/main/kotlin/com/aurora/music/data/remote/JellyfinApi.kt:13 — `JellyfinApi` declares 24 abstract methods: `publicInfo`, `authenticate`, `quickConnectEnabled`, `quickConnectInitiate`, `quickConnectStatus`, `authenticateWithQuickConnect`, `items`, `item`, `itemRaw`, `updateItem`, `artists`, `playlistItems`, `similar`, `lyrics`, `favorite`, `unfavorite`, `markPlayed`, `playbackStarted`, `playbackProgress`, `playbackStopped`, `createPlaylist`, `addToPlaylist`, `removePlaylistItems`, `deleteItem`. 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: SpotifyApi (34 abstract methods) core/src/main/kotlin/com/aurora/music/data/remote/SpotifyApi.kt:110 — `SpotifyApi` declares 34 abstract methods: `me`, `savedTracks`, `tracksContains`, `myPlaylists`, `savedAlbums`, `followedArtists`, `topTracks`, `topArtists`, `recentlyPlayed`, `newReleases`, `recommendations`, `search`, `album`, `albumTracks`, `artist`, `artistTopTracks`, `artistAlbums`, `playlist`, `playlistTracks`, `playlistItems`, `track`, `tracks`, `saveTracks`, `removeTracks`, `followArtists`, `unfollowArtists`, `saveAlbums`, `removeAlbums`, `followPlaylist`, `unfollowPlaylist`, `createPlaylist`, `changePlaylistDetails`, `addToPlaylist`, `removeFromPlaylist`. 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: SubsonicApi (24 abstract methods) core/src/main/kotlin/com/aurora/music/data/remote/SubsonicApi.kt:7 — `SubsonicApi` declares 24 abstract methods: `ping`, `getOpenSubsonicExtensions`, `reportPlayback`, `getAlbumList2`, `getAlbum`, `getSong`, `getLyricsBySongId`, `getArtists`, `getMusicFolders`, `getIndexes`, `getMusicDirectory`, `getArtist`, `getPlaylists`, `getPlaylist`, `createPlaylist`, `updatePlaylist`, `deletePlaylist`, `getStarred2`, `getRandomSongs`, `getSimilarSongs2`, `search3`, `star`, `unstar`, `scrobble`. 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: AppearanceSettings (33 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/AppearanceSettings.kt:14 — `AppearanceSettings` declares 33 abstract methods: `setVisualizer`, `setGestureSwipeArtwork`, `setGestureSwipeDismiss`, `setGestureDoubleTap`, `setHaptics`, `setMusicHaptics`, `setMusicHapticsIntensity`, `setMusicHapticsDetail`, `setMusicHapticsTexture`, `setMusicHapticsOffset`, `setThemeMode`, `setThemeStyle`, `setAccentMode`, `setAccentPreset`, `setAccentColor`, `setFontScale`, `setTypeface`, `setCornerStyle`, `setPlayerSeekStyle`, `setLyricsSync`, `setLyricsTranslate`, `setPlayerWaveBars`, `setPlayerArtSize`, `setPlayerGradient`, `setPlayerShowUtilities`, `setMiniStyle`, `setMiniProgress`, `setLibraryColumns`, `setLibraryTabs`, `setTabletSetting`, `resetTabletSettings`, `setNavLayout`, `setHomeSectionHidden`. 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: DspSettings (42 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/DspSettings.kt:20 — `DspSettings` declares 42 abstract methods: `setProcessingRack`, `migrateProcessingRack`, `resetProcessingRack`, `setOutputRatePolicy`, `updateOutputRatePolicy`, `applyEqBindingIfEnabled`, `setReverb`, `setAutoEqAutoSwitch`, `setActiveEqProfile`, `applyLegacyEqProfile`, `upsertEqBinding`, `bindEqToCurrentOutput`, `removeEqBinding`, `setEqEnabled`, `setEqPreset`, `setEqBands`, `setBassBoost`, `setVirtualizer`, `setLoudness`, `setReplayGain`, `setDspMode`, `setDspGraphicBands`, `setDspGraphic`, `setDspParametric`, `setDspPreamp`, `setDspBalance`, `setDspWidth`, `setDspCrossfeed`, `setDspLimiterEnabled`, `setDspCeiling`, `setDspCompEnabled`, `setDspCompThresh`, `setDspCompRatio`, `setDspConvEnabled`, `setDspConvMakeup`, `setDspConvIr`, `setDspGraphicLayout`, `setDspSaturation`, `setDspDelayLeft`, `setDspDelayRight`, and 2 more. 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: GeneralSettings (16 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/GeneralSettings.kt:14 — `GeneralSettings` declares 16 abstract methods: `setOnboardingSeen`, `setWhatsNewSeen`, `setWhatsNewEnabled`, `setUpdateAnnounced`, `setStarPromptSeen`, `setHistoricalListeningMs`, `setOfflineMode`, `setDataSaver`, `setMobileDataDownloads`, `setInsightsEnabled`, `setInsightsDevice`, `setInsightsAudioPath`, `setInsightsPlaces`, `setInsightsLocationHistory`, `setSimpleMode`, `setPrivateSession`. 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: IntegrationSettings (19 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/IntegrationSettings.kt:12 — `IntegrationSettings` declares 19 abstract methods: `setSquigBaseUrl`, `setSquigTarget`, `setAcoustIdKey`, `saveLastfm`, `clearLastfm`, `setLastfmEnabled`, `setLastfmKeys`, `setLastfmPendingToken`, `setLastfmArtistRules`, `saveListenBrainz`, `clearListenBrainz`, `setListenBrainzEnabled`, `saveDiscord`, `clearDiscord`, `setDiscordEnabled`, `setDiscordImgur`, `setDiscordShowAlbum`, `setDiscordActivityName`, `setDiscordAppId`. 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: LibrarySettings (20 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/LibrarySettings.kt:15 — `LibrarySettings` declares 20 abstract methods: `setSonicAutoAnalyze`, `setArtistEnrichment`, `setPreferLocalSources`, `setSourcePriority`, `setCatalogueLibraryCopies`, `setCatalogueMatchRelaxed`, `setCatalogueLosslessOnly`, `setUnifiedLibrary`, `setLocalFolders`, `setLocalExcludedFolders`, `setMergeSources`, `setMergeFeatures`, `setLyricsSources`, `setArtworkLookupEnabled`, `setTrackCovers`, `setAnimatedCoversEnabled`, `setAnimatedCoversFolder`, `setLrclibEnabled`, `setArtistSeparators`, `setTrackSort`. 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: PlaybackSettings (32 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/PlaybackSettings.kt:15 — `PlaybackSettings` declares 32 abstract methods: `setAudioCacheEnabled`, `setAudioCacheLimit`, `setAiDjSpoken`, `setConnectSwitch`, `setSkipSilence`, `setCrossfade`, `setCrossfadeCurve`, `setCrossfadeHeadroom`, `setGapless`, `setDefaultSpeed`, `setMono`, `setStreamWifi`, `setStreamCellular`, `setDownloadBitrate`, `setYouTubeDownloadFormat`, `setYouTubeDownloadBitrate`, `setYouTubeDownloadAnonymous`, `setYouTubeDownloadArtwork`, `setPreferHighRes`, `setBitPerfectUsb`, `setUsbOutputMode`, `setUsbDsdMode`, `setUsbDsdExperimental`, `setUsbHardwareVolume`, `setUsbFallbackPolicy`, `setIndependentOutput`, `setScrobble`, `setAutoplayRadio`, `setResumePodcasts`, `setResumeLongTracks`, `setLongFormSkipButtons`, `setAlarm`. 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: PresetSettings (19 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/PresetSettings.kt:24 — `PresetSettings` declares 19 abstract methods: `saveProcessingPreset`, `savePresetRule`, `removePresetRule`, `movePresetRule`, `setPresetRulesEnabled`, `setPresetRuleManualHold`, `transitionPresetRule`, `setRouteRulesEnabled`, `holdCurrentRoute`, `chooseRouteHeadphones`, `bindCurrentRoute`, `removeRouteBinding`, `applyProcessingPreset`, `applyRoutePreset`, `duplicateProcessingPreset`, `renameProcessingPreset`, `deleteProcessingPreset`, `exportProcessingPreset`, `importProcessingPreset`. 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: RackLibrarySettings (17 abstract methods) core/src/main/kotlin/com/aurora/music/data/settings/RackLibrarySettings.kt:32 — `RackLibrarySettings` declares 17 abstract methods: `importImpulse`, `importCurrentImpulse`, `renameImpulse`, `deleteImpulse`, `prepareImpulse`, `selectImpulse`, `exportImpulse`, `saveTuningTarget`, `deleteTuningTarget`, `revertTuningAppend`, `saveTuningProject`, `deleteTuningProject`, `appendTuningProjectToRack`, `appendTuningProjectWithUndo`, `saveRackSubchain`, `deleteRackSubchain`, `appendRackSubchain`. 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: PlaybackEngine (26 abstract methods) desktop/src/main/kotlin/com/aurora/music/desktop/audio/PlaybackEngine.kt:14 — `PlaybackEngine` declares 26 abstract methods: `setQueue`, `insert`, `append`, `move`, `remove`, `replace`, `clear`, `seekTo`, `next`, `previousItem`, `play`, `pause`, `stop`, `setRepeat`, `setShuffle`, `setSpeed`, `setVolume`, `sleepFade`, `wakeFade`, `configure`, `setOutput`, `applyDsp`, `setLegacyImpulse`, `setRackImpulses`, `dspReport`, `rackMeters`. 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: PlayerController (33 abstract methods) desktop/src/main/kotlin/com/aurora/music/desktop/player/PlayerController.kt:71 — `PlayerController` declares 33 abstract methods: `playAll`, `play`, `playCollection`, `shuffleCollection`, `shufflePlay`, `startSonicRadio`, `startAutoDj`, `addToQueue`, `playNext`, `jumpTo`, `removeFromQueue`, `clearQueue`, `moveQueueItem`, `saveQueueAsPlaylist`, `togglePlay`, `seekTo`, `next`, `previous`, `toggleShuffle`, `cycleRepeat`, `toggleLikeCurrent`, `refreshLikes`, `checkLiked`, `toggleLike`, `setExpanded`, `setSpeed`, `resetSpeedPitch`, `setSleepTimer`, `setSleepEndOfTrack`, `setPreferredDevice`, `setExclusiveOutput`, `setVolume`, `stopPlayback`. 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.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×8
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:443 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:444 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/PlaylistImport.kt:169 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/PlaylistImport.kt:174 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/PlaylistLinks.kt:80 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/PlaylistLinks.kt:94 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/PlaylistLinks.kt:146 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex core/src/main/kotlin/com/aurora/music/data/SpotifyBackend.kt:74 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×3
  • Projects may be oversized for their cohesion core/build.gradle.kts:1 — `core` (35168 LoC, 1345 module-visible types across 28 directories) overshoots its size bounds. 3 of 8 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 2.5/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.
  • Projects may be oversized for their cohesion app/build.gradle.kts:1 — `app` (55366 LoC, 616 module-visible types across 48 directories) overshoots its size bounds. 3 of 8 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 2.5/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.
  • Projects may be oversized for their cohesion desktop/build.gradle.kts:1 — `desktop` (48659 LoC, 702 module-visible types across 48 directories) overshoots its size bounds. 3 of 8 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 2.5/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.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found desktop/build.gradle.kts:168 — 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 `desktop/build.gradle.kts` makes this repository a deployable product (line 168).
D21 · Naming Consistency · `playlistItemID` spells `ID` where 286 names in the project spell it `Id` · ×1
  • `playlistItemID` spells `ID` where 286 names in the project spell it `Id` core/src/main/kotlin/com/aurora/music/data/remote/PlexClient.kt:393 — 286 of 287 names in project core spell the token `Id` (286 of 287; unit: names in project core containing `Id`). Peers: AppleMusicProfile.userId (core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:23); AppleMusicBackend.radio(seedId) (core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:158); AppleMusicBackend.playlistsForSong(songId) (core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:265); AppleMusicBackend.createPlaylistWithId (core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:269); AppleMusicBackend.createPlaylistWithId (core/src/main/kotlin/com/aurora/music/data/AppleMusicBackend.kt:270). Rename to `playlistItemId`. [rule N6]
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation app/build.gradle.kts:98 — `app/build.gradle.kts` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
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/14 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.

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

Run 01a1e868-4e63-75bf-a276-ac8071a33814 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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