Public report of lecoix/mica-music, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 04:46 UTC · Survey ID cd_04512d30967945db9f70464a44e9471f
lecoix/mica-music
Measured 17 November 2026, 04:45 UTC, at code version fed5568
First survey, so nothing to compare with yet
CAI scoreAdequate
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: 135,898 lines of product code in 7 projects, tests not counted · Estimated rebuild effort: about 1.6 person-years · Weakest lens: Production Readiness, 44.3
Findings by how serious they are
30 critical906 serious68 minor
13 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 04:45 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.
997of 1004 findings point to an exact file and line, so you can open each one in the code. The other 7 concern the repository as a whole, such as missing documentation.
54dimensions across 7 lenses, read from 135,898 lines of product code in 7 projects.
lecoix/mica-music falls short of our standard for a preview release because we found no automated security scanning of the code, its secrets or its dependencies. It scores 54.4 out of 100 and is rated Adequate, and 29 of its 30 critical findings are security problems in the build pipeline and in its servers and containers.
Production Readiness, at 44.3, 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 3.5 points. Adding automated security scanning would lift Production Readiness itself, worth about 6.9 points. Raising Production Readiness to 62 would lift the score to about 59.9.
Twenty-seven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. One pipeline step runs a download nobody checks, and one setting leaves the servers or containers unsafe. Pinning each tool to an exact version, checking the download against a checksum and correcting the unsafe settings 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 135,898 lines, about €230,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Production Readiness rose from 44.3 to 62, the lowest score rated Strong, the score would rise from 54.4 to about 59.9.
Code composition: what the lines of code are
Product code 67%Tests 33%
Rebuild cost: about €230,000 · Estimate
Cost to rebuild
€77,000 to €390,000, for 1,279 to 4,059 hours of work, about 1.6 person-years for 1 to 4 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.8 at a score of 54. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 135,898 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 1 Banned license finding(s) in License 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.
Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
Raises the score by about 5.1 points · Medium effort · Strongly-typed ids
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 €230,000 to build again, about 1.6 person-years of work. Its weakest lens is Production Readiness, at 44.3 (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 3.5 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 6.6 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 8% on every change. The history of the code shows how much it changes: about 221,018 lines over the last 90 days, which is about 896,351 lines a year. At that pace, the extra work comes to an estimated 75.9 to 455.4 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
462 modules, with 542 dependencies between them. 3 loops run through 64 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 422 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.
afalphy.sylvakru.UsbExclusiveAudioTransport uses afalphy.sylvakru, so a change to afalphy.sylvakru can break afalphy.sylvakru.UsbExclusiveAudioTransport, while a change to afalphy.sylvakru.UsbExclusiveAudioTransport can't break afalphy.sylvakru.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→21 mica.music.data.LibraryBrowseDetails uses mica.music.datapart of a loop✕
Connections
4 pairs of types, where a type in mica.music.data.LibraryBrowseDetails uses a type in mica.music.data.
mica.music.data.LibraryBrowseDetails uses mica.music.data, so a change to mica.music.data can break mica.music.data.LibraryBrowseDetails, while a change to mica.music.data.LibraryBrowseDetails can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→21 mica.music.data.LyricDisplayRows uses mica.music.datapart of a loop✕
Connections
1 pair of types, where a type in mica.music.data.LyricDisplayRows uses a type in mica.music.data.
mica.music.data.LyricDisplayRows uses mica.music.data, so a change to mica.music.data can break mica.music.data.LyricDisplayRows, while a change to mica.music.data.LyricDisplayRows can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→21 mica.music.data.LyricsCacheCoordinator uses mica.music.datapart of a loop✕
Connections
2 pairs of types, where a type in mica.music.data.LyricsCacheCoordinator uses a type in mica.music.data.
mica.music.data.LyricsCacheCoordinator uses mica.music.data, so a change to mica.music.data can break mica.music.data.LyricsCacheCoordinator, while a change to mica.music.data.LyricsCacheCoordinator can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→16 mica.music.data.remote.navidrome uses mica.music.data.remotepart of a loop✕
Connections
28 pairs of types, where a type in mica.music.data.remote.navidrome uses a type in mica.music.data.remote. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.remote.navidrome uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.data.remote.navidrome, while a change to mica.music.data.remote.navidrome can't break mica.music.data.remote.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→21 mica.music.data.remote.navidrome uses mica.music.datapart of a loop✕
Connections
3 pairs of types, where a type in mica.music.data.remote.navidrome uses a type in mica.music.data.
mica.music.data.remote.navidrome uses mica.music.data, so a change to mica.music.data can break mica.music.data.remote.navidrome, while a change to mica.music.data.remote.navidrome can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→16 mica.music.data.remote.smb uses mica.music.data.remotepart of a loop✕
Connections
33 pairs of types, where a type in mica.music.data.remote.smb uses a type in mica.music.data.remote. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.remote.smb uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.data.remote.smb, while a change to mica.music.data.remote.smb can't break mica.music.data.remote.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→21 mica.music.data.remote.smb uses mica.music.datapart of a loop✕
Connections
2 pairs of types, where a type in mica.music.data.remote.smb uses a type in mica.music.data.
mica.music.data.remote.smb uses mica.music.data, so a change to mica.music.data can break mica.music.data.remote.smb, while a change to mica.music.data.remote.smb can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→16 mica.music.data.remote.webdav uses mica.music.data.remotepart of a loop✕
Connections
21 pairs of types, where a type in mica.music.data.remote.webdav uses a type in mica.music.data.remote.
mica.music.data.remote.webdav uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.data.remote.webdav, while a change to mica.music.data.remote.webdav can't break mica.music.data.remote.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→21 mica.music.data.remote.webdav uses mica.music.datapart of a loop✕
Connections
2 pairs of types, where a type in mica.music.data.remote.webdav uses a type in mica.music.data.
mica.music.data.remote.webdav uses mica.music.data, so a change to mica.music.data can break mica.music.data.remote.webdav, while a change to mica.music.data.remote.webdav can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→19 mica.music.data.scanner.DeviceGenerationSnapshot uses mica.music.data.scannerpart of a loop✕
Connections
4 pairs of types, where a type in mica.music.data.scanner.DeviceGenerationSnapshot uses a type in mica.music.data.scanner.
mica.music.data.scanner.DeviceGenerationSnapshot uses mica.music.data.scanner, so a change to mica.music.data.scanner can break mica.music.data.scanner.DeviceGenerationSnapshot, while a change to mica.music.data.scanner.DeviceGenerationSnapshot can't break mica.music.data.scanner.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
afalphy.sylvakru uses afalphy.sylvakru.UsbExclusiveAudioTransport, so a change to afalphy.sylvakru.UsbExclusiveAudioTransport can break afalphy.sylvakru, while a change to afalphy.sylvakru can't break afalphy.sylvakru.UsbExclusiveAudioTransport.
Position
Below the diagonal: afalphy.sylvakru uses a module listed above it, which is the healthy direction.
mica.music.data.remote uses mica.music.data.remote.navidrome, so a change to mica.music.data.remote.navidrome can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.data.remote.navidrome.
Position
Below the diagonal: mica.music.data.remote uses a module listed above it, which is the healthy direction.
mica.music.data.remote uses mica.music.data.remote.smb, so a change to mica.music.data.remote.smb can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.data.remote.smb.
Position
Below the diagonal: mica.music.data.remote uses a module listed above it, which is the healthy direction.
mica.music.data.remote uses mica.music.data.remote.webdav, so a change to mica.music.data.remote.webdav can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.data.remote.webdav.
Position
Below the diagonal: mica.music.data.remote uses a module listed above it, which is the healthy direction.
16→17 mica.music.data.remote uses mica.music.data.localpart of a loop✕
Connections
6 pairs of types, where a type in mica.music.data.remote uses a type in mica.music.data.local.
mica.music.data.remote uses mica.music.data.local, so a change to mica.music.data.local can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.data.local.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→21 mica.music.data.remote uses mica.music.datapart of a loop✕
Connections
9 pairs of types, where a type in mica.music.data.remote uses a type in mica.music.data.
mica.music.data.remote uses mica.music.data, so a change to mica.music.data can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→40 mica.music.data.remote uses mica.musicpart of a loop✕
Connections
1 pair of types, where a type in mica.music.data.remote uses a type in mica.music.
mica.music.data.remote uses mica.music, so a change to mica.music can break mica.music.data.remote, while a change to mica.music.data.remote can't break mica.music.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.data.local uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.data.local, while a change to mica.music.data.local can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.data.local uses a module listed above it, which is the healthy direction.
17→20 mica.music.data.local uses mica.music.data.librarypart of a loop✕
Connections
21 pairs of types, where a type in mica.music.data.local uses a type in mica.music.data.library.
mica.music.data.local uses mica.music.data.library, so a change to mica.music.data.library can break mica.music.data.local, while a change to mica.music.data.local can't break mica.music.data.library.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→21 mica.music.data.local uses mica.music.datapart of a loop✕
Connections
31 pairs of types, where a type in mica.music.data.local uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.local uses mica.music.data, so a change to mica.music.data can break mica.music.data.local, while a change to mica.music.data.local can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.media.usbhybrid uses mica.music.usb, so a change to mica.music.usb can break mica.music.media.usbhybrid, while a change to mica.music.media.usbhybrid can't break mica.music.usb.
Position
Below the diagonal: mica.music.media.usbhybrid uses a module listed above it, which is the healthy direction.
mica.music.media.usbhybrid uses afalphy.sylvakru, so a change to afalphy.sylvakru can break mica.music.media.usbhybrid, while a change to mica.music.media.usbhybrid can't break afalphy.sylvakru.
Position
Below the diagonal: mica.music.media.usbhybrid uses a module listed above it, which is the healthy direction.
18→31 mica.music.media.usbhybrid uses mica.music.mediapart of a loop✕
Connections
1 pair of types, where a type in mica.music.media.usbhybrid uses a type in mica.music.media.
mica.music.media.usbhybrid uses mica.music.media, so a change to mica.music.media can break mica.music.media.usbhybrid, while a change to mica.music.media.usbhybrid can't break mica.music.media.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.data.scanner uses mica.music.data.scanner.DeviceGenerationSnapshot, so a change to mica.music.data.scanner.DeviceGenerationSnapshot can break mica.music.data.scanner, while a change to mica.music.data.scanner can't break mica.music.data.scanner.DeviceGenerationSnapshot.
Position
Below the diagonal: mica.music.data.scanner uses a module listed above it, which is the healthy direction.
mica.music.data.scanner uses mica.music.data.local, so a change to mica.music.data.local can break mica.music.data.scanner, while a change to mica.music.data.scanner can't break mica.music.data.local.
Position
Below the diagonal: mica.music.data.scanner uses a module listed above it, which is the healthy direction.
19→21 mica.music.data.scanner uses mica.music.datapart of a loop✕
Connections
44 pairs of types, where a type in mica.music.data.scanner uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.scanner uses mica.music.data, so a change to mica.music.data can break mica.music.data.scanner, while a change to mica.music.data.scanner can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.data.library uses mica.music.data.scanner.DeviceGenerationSnapshot, so a change to mica.music.data.scanner.DeviceGenerationSnapshot can break mica.music.data.library, while a change to mica.music.data.library can't break mica.music.data.scanner.DeviceGenerationSnapshot.
Position
Below the diagonal: mica.music.data.library uses a module listed above it, which is the healthy direction.
mica.music.data.library uses mica.music.data.local, so a change to mica.music.data.local can break mica.music.data.library, while a change to mica.music.data.library can't break mica.music.data.local.
Position
Below the diagonal: mica.music.data.library uses a module listed above it, which is the healthy direction.
103 pairs of types, where a type in mica.music.data.library uses a type in mica.music.data.scanner. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.library uses mica.music.data.scanner, so a change to mica.music.data.scanner can break mica.music.data.library, while a change to mica.music.data.library can't break mica.music.data.scanner.
Position
Below the diagonal: mica.music.data.library uses a module listed above it, which is the healthy direction.
20→21 mica.music.data.library uses mica.music.datapart of a loop✕
Connections
81 pairs of types, where a type in mica.music.data.library uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.library uses mica.music.data, so a change to mica.music.data can break mica.music.data.library, while a change to mica.music.data.library can't break mica.music.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.data uses mica.music.data.LibraryBrowseDetails, so a change to mica.music.data.LibraryBrowseDetails can break mica.music.data, while a change to mica.music.data can't break mica.music.data.LibraryBrowseDetails.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
mica.music.data uses mica.music.data.LyricDisplayRows, so a change to mica.music.data.LyricDisplayRows can break mica.music.data, while a change to mica.music.data can't break mica.music.data.LyricDisplayRows.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
mica.music.data uses mica.music.data.LyricsCacheCoordinator, so a change to mica.music.data.LyricsCacheCoordinator can break mica.music.data, while a change to mica.music.data can't break mica.music.data.LyricsCacheCoordinator.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
mica.music.data uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.data, while a change to mica.music.data can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
mica.music.data uses mica.music.data.local, so a change to mica.music.data.local can break mica.music.data, while a change to mica.music.data can't break mica.music.data.local.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
mica.music.data uses mica.music.data.scanner, so a change to mica.music.data.scanner can break mica.music.data, while a change to mica.music.data can't break mica.music.data.scanner.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
40 pairs of types, where a type in mica.music.data uses a type in mica.music.data.library. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data uses mica.music.data.library, so a change to mica.music.data.library can break mica.music.data, while a change to mica.music.data can't break mica.music.data.library.
Position
Below the diagonal: mica.music.data uses a module listed above it, which is the healthy direction.
21→40 mica.music.data uses mica.musicpart of a loop✕
Connections
1 pair of types, where a type in mica.music.data uses a type in mica.music.
mica.music.audio.eq uses mica.music.audio.fx, so a change to mica.music.audio.fx can break mica.music.audio.eq, while a change to mica.music.audio.eq can't break mica.music.audio.fx.
Position
Below the diagonal: mica.music.audio.eq uses a module listed above it, which is the healthy direction.
mica.music.audio.eq uses mica.music.data, so a change to mica.music.data can break mica.music.audio.eq, while a change to mica.music.audio.eq can't break mica.music.data.
Position
Below the diagonal: mica.music.audio.eq uses a module listed above it, which is the healthy direction.
mica.music.audio.loudness uses mica.music.data, so a change to mica.music.data can break mica.music.audio.loudness, while a change to mica.music.audio.loudness can't break mica.music.data.
Position
Below the diagonal: mica.music.audio.loudness uses a module listed above it, which is the healthy direction.
mica.music.data.playback uses mica.music.audio, so a change to mica.music.audio can break mica.music.data.playback, while a change to mica.music.data.playback can't break mica.music.audio.
Position
Below the diagonal: mica.music.data.playback uses a module listed above it, which is the healthy direction.
mica.music.data.playback uses mica.music.data, so a change to mica.music.data can break mica.music.data.playback, while a change to mica.music.data.playback can't break mica.music.data.
Position
Below the diagonal: mica.music.data.playback uses a module listed above it, which is the healthy direction.
mica.music.imaging uses mica.music.data, so a change to mica.music.data can break mica.music.imaging, while a change to mica.music.imaging can't break mica.music.data.
Position
Below the diagonal: mica.music.imaging uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.home uses mica.music.data.remote.smb, so a change to mica.music.data.remote.smb can break mica.music.ui.screens.home, while a change to mica.music.ui.screens.home can't break mica.music.data.remote.smb.
Position
Below the diagonal: mica.music.ui.screens.home uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.home uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.ui.screens.home, while a change to mica.music.ui.screens.home can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.ui.screens.home uses a module listed above it, which is the healthy direction.
53 pairs of types, where a type in mica.music.ui.screens.home uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.ui.screens.home uses mica.music.data, so a change to mica.music.data can break mica.music.ui.screens.home, while a change to mica.music.ui.screens.home can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.screens.home uses a module listed above it, which is the healthy direction.
26→35 mica.music.ui.screens.home uses mica.music.ui.componentspart of a loop✕
Connections
2 pairs of types, where a type in mica.music.ui.screens.home uses a type in mica.music.ui.components.
mica.music.ui.screens.home uses mica.music.ui.components, so a change to mica.music.ui.components can break mica.music.ui.screens.home, while a change to mica.music.ui.screens.home can't break mica.music.ui.components.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.ui.theme uses mica.music.data, so a change to mica.music.data can break mica.music.ui.theme, while a change to mica.music.ui.theme can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.theme uses a module listed above it, which is the healthy direction.
mica.music.util uses mica.music.data, so a change to mica.music.data can break mica.music.util, while a change to mica.music.util can't break mica.music.data.
Position
Below the diagonal: mica.music.util uses a module listed above it, which is the healthy direction.
mica.music.data.preferences uses mica.music.audio.fx, so a change to mica.music.audio.fx can break mica.music.data.preferences, while a change to mica.music.data.preferences can't break mica.music.audio.fx.
Position
Below the diagonal: mica.music.data.preferences uses a module listed above it, which is the healthy direction.
mica.music.data.preferences uses mica.music.usb, so a change to mica.music.usb can break mica.music.data.preferences, while a change to mica.music.data.preferences can't break mica.music.usb.
Position
Below the diagonal: mica.music.data.preferences uses a module listed above it, which is the healthy direction.
mica.music.data.preferences uses mica.music.data.scanner, so a change to mica.music.data.scanner can break mica.music.data.preferences, while a change to mica.music.data.preferences can't break mica.music.data.scanner.
Position
Below the diagonal: mica.music.data.preferences uses a module listed above it, which is the healthy direction.
38 pairs of types, where a type in mica.music.data.preferences uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.data.preferences uses mica.music.data, so a change to mica.music.data can break mica.music.data.preferences, while a change to mica.music.data.preferences can't break mica.music.data.
Position
Below the diagonal: mica.music.data.preferences uses a module listed above it, which is the healthy direction.
mica.music.data.preferences uses mica.music.util, so a change to mica.music.util can break mica.music.data.preferences, while a change to mica.music.data.preferences can't break mica.music.util.
Position
Below the diagonal: mica.music.data.preferences uses a module listed above it, which is the healthy direction.
mica.music.media.loudness uses mica.music.data, so a change to mica.music.data can break mica.music.media.loudness, while a change to mica.music.media.loudness can't break mica.music.data.
Position
Below the diagonal: mica.music.media.loudness uses a module listed above it, which is the healthy direction.
mica.music.media.loudness uses mica.music.audio.loudness, so a change to mica.music.audio.loudness can break mica.music.media.loudness, while a change to mica.music.media.loudness can't break mica.music.audio.loudness.
Position
Below the diagonal: mica.music.media.loudness uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.audio, so a change to mica.music.audio can break mica.music.media, while a change to mica.music.media can't break mica.music.audio.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.diagnostics, so a change to mica.music.diagnostics can break mica.music.media, while a change to mica.music.media can't break mica.music.diagnostics.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.usb, so a change to mica.music.usb can break mica.music.media, while a change to mica.music.media can't break mica.music.usb.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.widget, so a change to mica.music.widget can break mica.music.media, while a change to mica.music.media can't break mica.music.widget.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.data.remote.smb, so a change to mica.music.data.remote.smb can break mica.music.media, while a change to mica.music.media can't break mica.music.data.remote.smb.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.media, while a change to mica.music.media can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.data.local, so a change to mica.music.data.local can break mica.music.media, while a change to mica.music.media can't break mica.music.data.local.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.media.usbhybrid, so a change to mica.music.media.usbhybrid can break mica.music.media, while a change to mica.music.media can't break mica.music.media.usbhybrid.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
52 pairs of types, where a type in mica.music.media uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.media uses mica.music.data, so a change to mica.music.data can break mica.music.media, while a change to mica.music.media can't break mica.music.data.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.audio.eq, so a change to mica.music.audio.eq can break mica.music.media, while a change to mica.music.media can't break mica.music.audio.eq.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.data.playback, so a change to mica.music.data.playback can break mica.music.media, while a change to mica.music.media can't break mica.music.data.playback.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
mica.music.media uses mica.music.data.preferences, so a change to mica.music.data.preferences can break mica.music.media, while a change to mica.music.media can't break mica.music.data.preferences.
Position
Below the diagonal: mica.music.media uses a module listed above it, which is the healthy direction.
31→40 mica.music.media uses mica.musicpart of a loop✕
Connections
1 pair of types, where a type in mica.music.media uses a type in mica.music.
mica.music.ui.screens.settings uses mica.music.usb, so a change to mica.music.usb can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.usb.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.settings uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.settings uses mica.music.data, so a change to mica.music.data can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.settings uses mica.music.audio.loudness, so a change to mica.music.audio.loudness can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.audio.loudness.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.settings uses mica.music.util, so a change to mica.music.util can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.util.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.settings uses mica.music.data.preferences, so a change to mica.music.data.preferences can break mica.music.ui.screens.settings, while a change to mica.music.ui.screens.settings can't break mica.music.data.preferences.
Position
Below the diagonal: mica.music.ui.screens.settings uses a module listed above it, which is the healthy direction.
mica.music.playback uses mica.music.data.library, so a change to mica.music.data.library can break mica.music.playback, while a change to mica.music.playback can't break mica.music.data.library.
Position
Below the diagonal: mica.music.playback uses a module listed above it, which is the healthy direction.
31 pairs of types, where a type in mica.music.playback uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.playback uses mica.music.data, so a change to mica.music.data can break mica.music.playback, while a change to mica.music.playback can't break mica.music.data.
Position
Below the diagonal: mica.music.playback uses a module listed above it, which is the healthy direction.
mica.music.playback uses mica.music.data.playback, so a change to mica.music.data.playback can break mica.music.playback, while a change to mica.music.playback can't break mica.music.data.playback.
Position
Below the diagonal: mica.music.playback uses a module listed above it, which is the healthy direction.
mica.music.playback uses mica.music.media, so a change to mica.music.media can break mica.music.playback, while a change to mica.music.playback can't break mica.music.media.
Position
Below the diagonal: mica.music.playback uses a module listed above it, which is the healthy direction.
33→40 mica.music.playback uses mica.musicpart of a loop✕
Connections
1 pair of types, where a type in mica.music.playback uses a type in mica.music.
mica.music.playback uses mica.music, so a change to mica.music can break mica.music.playback, while a change to mica.music.playback can't break mica.music.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.ui.overlay uses mica.music.data, so a change to mica.music.data can break mica.music.ui.overlay, while a change to mica.music.ui.overlay can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.overlay uses a module listed above it, which is the healthy direction.
mica.music.ui.overlay uses mica.music.media, so a change to mica.music.media can break mica.music.ui.overlay, while a change to mica.music.ui.overlay can't break mica.music.media.
Position
Below the diagonal: mica.music.ui.overlay uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.data.LyricDisplayRows, so a change to mica.music.data.LyricDisplayRows can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.data.LyricDisplayRows.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
59 pairs of types, where a type in mica.music.ui.components uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.ui.components uses mica.music.data, so a change to mica.music.data can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.audio.eq, so a change to mica.music.audio.eq can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.audio.eq.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.imaging, so a change to mica.music.imaging can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.imaging.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.ui.screens.home, so a change to mica.music.ui.screens.home can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.ui.screens.home.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.ui.theme, so a change to mica.music.ui.theme can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.ui.theme.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.data.preferences, so a change to mica.music.data.preferences can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.data.preferences.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
mica.music.ui.components uses mica.music.playback, so a change to mica.music.playback can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.playback.
Position
Below the diagonal: mica.music.ui.components uses a module listed above it, which is the healthy direction.
35→38 mica.music.ui.components uses mica.music.ui.screenspart of a loop✕
Connections
1 pair of types, where a type in mica.music.ui.components uses a type in mica.music.ui.screens.
mica.music.ui.components uses mica.music.ui.screens, so a change to mica.music.ui.screens can break mica.music.ui.components, while a change to mica.music.ui.components can't break mica.music.ui.screens.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
mica.music.ui.screens.player uses mica.music.data, so a change to mica.music.data can break mica.music.ui.screens.player, while a change to mica.music.ui.screens.player can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.screens.player uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player uses mica.music.ui.theme, so a change to mica.music.ui.theme can break mica.music.ui.screens.player, while a change to mica.music.ui.screens.player can't break mica.music.ui.theme.
Position
Below the diagonal: mica.music.ui.screens.player uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player uses mica.music.playback, so a change to mica.music.playback can break mica.music.ui.screens.player, while a change to mica.music.ui.screens.player can't break mica.music.playback.
Position
Below the diagonal: mica.music.ui.screens.player uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player uses mica.music.ui.components, so a change to mica.music.ui.components can break mica.music.ui.screens.player, while a change to mica.music.ui.screens.player can't break mica.music.ui.components.
Position
Below the diagonal: mica.music.ui.screens.player uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player.view uses mica.music.data, so a change to mica.music.data can break mica.music.ui.screens.player.view, while a change to mica.music.ui.screens.player.view can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.screens.player.view uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player.view uses mica.music.imaging, so a change to mica.music.imaging can break mica.music.ui.screens.player.view, while a change to mica.music.ui.screens.player.view can't break mica.music.imaging.
Position
Below the diagonal: mica.music.ui.screens.player.view uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player.view uses mica.music.playback, so a change to mica.music.playback can break mica.music.ui.screens.player.view, while a change to mica.music.ui.screens.player.view can't break mica.music.playback.
Position
Below the diagonal: mica.music.ui.screens.player.view uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player.view uses mica.music.ui.components, so a change to mica.music.ui.components can break mica.music.ui.screens.player.view, while a change to mica.music.ui.screens.player.view can't break mica.music.ui.components.
Position
Below the diagonal: mica.music.ui.screens.player.view uses a module listed above it, which is the healthy direction.
mica.music.ui.screens.player.view uses mica.music.ui.screens.player, so a change to mica.music.ui.screens.player can break mica.music.ui.screens.player.view, while a change to mica.music.ui.screens.player.view can't break mica.music.ui.screens.player.
Position
Below the diagonal: mica.music.ui.screens.player.view uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.diagnostics, so a change to mica.music.diagnostics can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.diagnostics.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.data.LibraryBrowseDetails, so a change to mica.music.data.LibraryBrowseDetails can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.data.LibraryBrowseDetails.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.data.LyricDisplayRows, so a change to mica.music.data.LyricDisplayRows can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.data.LyricDisplayRows.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.data.scanner, so a change to mica.music.data.scanner can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.data.scanner.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
115 pairs of types, where a type in mica.music.ui.screens uses a type in mica.music.data. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
mica.music.ui.screens uses mica.music.data, so a change to mica.music.data can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.audio.eq, so a change to mica.music.audio.eq can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.audio.eq.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.audio.loudness, so a change to mica.music.audio.loudness can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.audio.loudness.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.imaging, so a change to mica.music.imaging can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.imaging.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.ui.screens.home, so a change to mica.music.ui.screens.home can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.ui.screens.home.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.ui.theme, so a change to mica.music.ui.theme can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.ui.theme.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.data.preferences, so a change to mica.music.data.preferences can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.data.preferences.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.playback, so a change to mica.music.playback can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.playback.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.ui.components, so a change to mica.music.ui.components can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.ui.components.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.ui.screens.player, so a change to mica.music.ui.screens.player can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.ui.screens.player.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.screens uses mica.music.ui.screens.player.view, so a change to mica.music.ui.screens.player.view can break mica.music.ui.screens, while a change to mica.music.ui.screens can't break mica.music.ui.screens.player.view.
Position
Below the diagonal: mica.music.ui.screens uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.diagnostics, so a change to mica.music.diagnostics can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.diagnostics.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.usb, so a change to mica.music.usb can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.usb.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.data.remote.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.data, so a change to mica.music.data can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.data.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.audio.loudness, so a change to mica.music.audio.loudness can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.audio.loudness.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.ui.screens.home, so a change to mica.music.ui.screens.home can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.ui.screens.home.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.playback, so a change to mica.music.playback can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.playback.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music.ui.navigation uses mica.music.ui.screens, so a change to mica.music.ui.screens can break mica.music.ui.navigation, while a change to mica.music.ui.navigation can't break mica.music.ui.screens.
Position
Below the diagonal: mica.music.ui.navigation uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.diagnostics, so a change to mica.music.diagnostics can break mica.music, while a change to mica.music can't break mica.music.diagnostics.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.data.remote.smb, so a change to mica.music.data.remote.smb can break mica.music, while a change to mica.music can't break mica.music.data.remote.smb.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.data.remote, so a change to mica.music.data.remote can break mica.music, while a change to mica.music can't break mica.music.data.remote.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.data.library, so a change to mica.music.data.library can break mica.music, while a change to mica.music can't break mica.music.data.library.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.audio.loudness, so a change to mica.music.audio.loudness can break mica.music, while a change to mica.music can't break mica.music.audio.loudness.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.playback, so a change to mica.music.playback can break mica.music, while a change to mica.music can't break mica.music.playback.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
mica.music uses mica.music.ui.navigation, so a change to mica.music.ui.navigation can break mica.music, while a change to mica.music can't break mica.music.ui.navigation.
Position
Below the diagonal: mica.music uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
34
High / Critical
A03:2025 — Software Supply Chain Failures
4
Medium
A02:2025 — Security Misconfiguration
2
High / 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; Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs; Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 Banned license finding(s) in License 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.
Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where we can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
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 — 30
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 — 906
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 — 68
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 13
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
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 997 of 1004 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.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 390 artifact(s) across its subprojects (176 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 — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (2 contributor(s) across 582 commit(s) sampled, automation and bot accounts excluded). One of them holds 100% of the history; the other 1 hold 0% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
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.
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. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D20 ADR 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. The ADR lexicon (adr-lexicon-1) covers de, en, it, nl. A record identified as another language, or whose language could not be identified (fewer than 25 words of prose, or no clear winner), is never read with English rules: its missing-section, status, consequence-cost and same-question rules abstain, and only the structural rules (title, single option, dangling link, enforcement field) run.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D25 ADR Conformance — 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. The prohibition grammar (cue words, exception markers, scope prepositions) is English. A decision in another language is never read with it. An `adr-rules` block is read in any language.
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/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt`, `app/src/debug/java/com/mica/music/media/usbprototype/UsbPrototypeGenerationGate.kt`, `app/src/main/java/com/mica/music/LibraryFollowupConsumer.kt`, `app/src/main/java/com/mica/music/MicaApp.kt`, `app/src/main/java/com/mica/music/data/PlaybackSongResolver.kt`, … (+34 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Boot via AndroidApp (app). the Android app did not build — `./gradlew :app:assembleDebug` exited 1: roject :app
> Could not resolve com.github.Dimezis:BlurView:version-3.2.0.
> Could not get resource 'https://jitpack.io/com/github/Dimezis/BlurView/version-3.2.0/BlurView-version-3.2.0.…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it).
C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
DM8 Value-object opportunities — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds primitive parameters that travel together through several signatures of the domain (a missing value object). Its deterministic rule has not yet shown 95 % precision on adjudicated rows, so the clumps it finds are counted here and not published as findings, and the card carries no score. That is a limit of the analyzer, not a finding about your code.
DM9 Scattered domain decisions — 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. The frontend declares that it computes whether a construction is produced or passed, yet 2815 of 2846 constructions arrived without the answer. Arm two skipped them; it did not clear them.
GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's Kotlin, c, cpp is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's Kotlin, c, cpp 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.
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. 23 further occurrence(s) are not listed individually; the score already reflects all 63.
X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
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").
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
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 REDACTED (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.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
102 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was NowPlayingScreenKt.NowPlayingContent at 213. A further 8 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 LyricsPreferences.registerNotificationLyricsChangeListener 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/mica/music/data/preferences/LyricsPreferences.kt (LyricsPreferences.registerNotificationLyricsChangeListener at 32), app/src/main/java/com/mica/music/data/scanner/AudioTrackProbe.kt (AudioTrackProbe.playbackMimeFor at 26), app/src/main/java/com/mica/music/data/PlaybackMimeResolver.kt (PlaybackMimeResolver.mimeFromFileName at 20), app/src/main/java/com/mica/music/data/TrackMetadata.kt (TrackMetadata.containerFromMime at 19), app/src/main/java/com/mica/music/data/library/LibraryFollowupProtocol.kt (LibraryFollowupProtocolKt.isAutoSyncCause at 19), 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.
+ 97 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with NowPlayingScreenKt.NowPlayingContent (cyclomatic 213), HomeScreenKt.HomeScreen (cyclomatic 121). — 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 2 together lifts Cyclomatic Complexity from 5.2 to about 5.8/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.
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.
+ 141 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 3 bodies over 120 down to 120 or less in Cognitive Complexity — start with NowPlayingScreenKt.NowPlayingContent (cognitive 330), HomeScreenKt.HomeScreen (cognitive 143), NowPlayingLyricsExpandedKt.ExpandedLyricsPanel (cognitive 126). — 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 3 together lifts Cognitive Complexity from 4.5 to about 5.7/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.
Do you agree with this assessment?
D3 · God Classes6.7 / 10Adequate✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 72 MethodTooLong finding(s) in God Classes — start with LibraryAutoSyncQaReceiver.kt (4), LetterLyricsPrototype.kt (3), LibraryAutoSyncQaProfileService.kt (3). — One of this dimension's main actionable groups (72 warning-level).
Resolve the 42 FileTooLong finding(s) in God Classes — start with NowPlayingScreen.kt, StarMapGlBackground.kt, HomeBrowseContent.kt. — One of this dimension's main actionable groups (42 warning-level).
Resolve the 29 TooManyMethods finding(s) in God Classes — start with LyricsPreferences.kt, PlaybackRuntime.kt, AppUiSettings.kt. — One of this dimension's main actionable groups (29 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
252 duplicated block group(s) detected. 7.9 % of the production lines (10,734 of 135,898) are in a reported copy. A further 143 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 1 of the 395 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 143 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 19 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with EncoderSettingsReader.kt (3), CoverFlowCarouselView.kt (2), LibraryAutoSyncQaProfileService.kt. — One of this dimension's main actionable groups (19 warning-level).
Resolve the 16 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with LibraryAutoSyncQaProfileService.kt, SoftwareEqualizer.kt, SafShadowCanonicalProjection.kt. — One of this dimension's main actionable groups (16 warning-level).
Resolve the 16 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with EmbeddedLyricsReader.kt (3), DeviceShadowProbeDraftReader.kt (2), Mp4LyricsReader.kt (2). — One of this dimension's main actionable groups (16 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
7 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; 0 module(s) off the main sequence, with abstractness counted on 2 of the 7 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
What it measures: Whether the code respects its intended layering / architecture rules.
Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.
No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
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.
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.
1 of 18 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 8 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 8 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 32 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Top hotspots: app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt (51×213=10863); app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt (41×121=4961); app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt (13×83=1079) Repeated repair below the complexity floor: app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt (4 of 6 changes were fixes); app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt (4 of 4 changes were fixes); app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.kt (3 of 5 changes were fixes)
Resolve the 49 Hotspot finding(s) in Churn × Complexity Hotspots — start with NowPlayingScreen.kt, HomeScreen.kt, NowPlayingLyricsExpanded.kt. — One of this dimension's main actionable groups (49 warning-level).
Resolve the 4 Repeated repair finding(s) in Churn × Complexity Hotspots — start with LibraryAutoSyncStateEntities.kt, AlbumArtCache.kt, AnimatedTheme.kt. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
0 deducted task-comment markers across 135898 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 54 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality8.7 / 10Strong✓ 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.
1 of 3 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.
ADR has no Context sectiondocs/adr/0004-usb-exclusive-hybrid.md:6detected by adr-integrity
What to do
Resolve the 1 ADR has no Context section finding(s) in ADR Quality — start with 0004-usb-exclusive-hybrid.md. — 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.
1 of 5 build units (Gradle) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesionapp/build.gradle.kts:1
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: 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.
30 % of calls cross a namespace and 0 % 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.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
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).
34 finding(s): 0 critical, 28 high, 6 medium, 0 low. 27 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 137 file(s) — `app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt` (lines 36–37, line 38, lines 59–60, …), `third_party/libusb-1.0.30/libusb/core.c` (line 1413, line 1428, line 2094, …), `third_party/libusb-1.0.30/libusb/hotplug.c` (line 206, line 303, line 465), `third_party/libusb-1.0.30/libusb/io.c` (line 1289, line 1423, line 1467, …), `third_party/libusb-1.0.30/libusb/libusb.h` (line 1468, line 1702, line 1825, …), … (+132 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
REDACTED
What to do
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
No action in Static Analysis (SAST) — all 27 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 (27 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 481 of the 699 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 8 Change coupling finding(s) in Change Coupling — start with AppUiSettings.kt (2), LyricsPreferences.kt, NowPlayingCoverSection.kt. — One of this dimension's main actionable groups (8 warning-level).
Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with MicaDatabaseMigrations.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.
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.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 4 platform declaration(s) and 50 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`MicaDatabase` declares 16 abstract methods: `songDao`, `songLyricsDao`, `libraryMetaDao`, `libraryStateDao`, `librarySyncStateDao`, `libraryRetryItemDao`, `libraryFollowupOutboxDao`, `libraryMembershipEvidenceDao`, `libraryUserExclusionDao`, `browseGroupDao`, `playlistDao`, `songLyricsOffsetDao`, `remoteSourceDao`, `remoteTrackDao`, `remoteSelectedTrackDao`, `remoteSmbScopeDao`. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — app/src/main/java/com/mica/music/data/local/MicaDatabase.kt:34
`PlaylistDao` declares 21 abstract methods: `ensureState`, `getRevision`, `incrementRevision`, `getPlaylists`, `getSongs`, `upsertPlaylist`, `updatePlaylist`, `insertSongs`, `deleteSongs`, `deletePlaylist`, `deleteAll`, `deleteSong`, `getSongPositions`, `getPlaylistIdsContainingAny`, `getSongsForPlaylist`, `clearCoverSong`, `clearCoverSongs`, `shiftSongsLeft`, `shiftSongsRight`, `updateSongPosition`, `closePositionGap`. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:56
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Do you agree with this assessment?
DM10 · One transaction, one aggregate10.0 / 10Exemplary○ Nothing flagged
Other · Domain Modelling — Whether a single operation mutates more than one aggregate root. An aggregate is a consistency boundary, so saving two together fuses them into one — the second's invariants come to depend on the first's transaction, and the pair can no longer be separated. Reads of other aggregates are not counted.
Method: Neutral body surface (DDD-gated): every method body scanned for repository WRITE calls (Add/Update/Save/Remove/Delete/Insert/Store and their async forms), keyed on the ARGUMENT type rather than the repository type — three `IRepository<T>` writes collapse to one repository but are three distinct aggregates. Reads (Get/Find/Load/Query) are excluded, so loading another aggregate for context never counts. Score is offending methods over methods that write at all. Deterministic.
Other · Domain Modelling — Whether an aggregate can be constructed in a state its own rules forbid — a public constructor that takes a raw primitive, stores it, and validates nothing, with no factory beside it. A constructor taking only value objects is not counted: each parameter has already validated itself.
Method: Neutral surface (DDD-gated): each non-abstract entity/aggregate checked for a PUBLIC constructor taking at least one RAW PRIMITIVE parameter whose body contains no guard token (throw / Guard. / Ensure. / ArgumentException / CheckRule / an XException.ThrowIf* helper). C#: a static factory beside a public constructor does not exempt it, and a public parameterless constructor followed by public raw-primitive setters that refuse nothing is charged when the type also declares a validating way in (a guarded constructor or a guarding static method returning the type); TypeScript: a static Create/Of/From/New factory exempts the type. A constructor taking only value objects is never charged -- measured: 64 of 87 unguarded public constructors on the C# corpus take value objects only, so ignoring parameter types would be 73% false positives. One finding per entity. Deterministic.
`BrowseGroupEntity`'s public constructor takes `kind`, `groupKey`, `title`, `subtitle`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `BrowseGroupEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/BrowseGroupEntity.kt:10
`LibrarySyncCheckpointEntity`'s public constructor takes `source`, `stableIdentity`, `partitionKey`, `providerVersion`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibrarySyncCheckpointEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:22
`LibraryRetryItemEntity`'s public constructor takes `source`, `stableIdentity`, `retryKey`, `stableObjectKey`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryRetryItemEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:46
`LibraryFollowupOutboxEntity`'s public constructor takes `eventId`, `action`, `source`, `stableIdentity`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryFollowupOutboxEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:74
`LibraryMembershipEvidenceEntity`'s public constructor takes `source`, `stableIdentity`, `stableObjectKey`, `songId`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryMembershipEvidenceEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:92
`LibraryUserExclusionEntity`'s public constructor takes `source`, `stableIdentity`, `stableObjectKey` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryUserExclusionEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:107
`LibraryStateEntity`'s public constructor takes `intent`, `access`, `activeSource`, `activeStableIdentity`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryStateEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/LibraryStateEntity.kt:18
`PlaylistEntity`'s public constructor takes `id`, `name`, `sortField`, `sortDirection`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PlaylistEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:21
`PlaylistSongEntity`'s public constructor takes `playlistId`, `songId` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PlaylistSongEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:44
`RemoteSmbScopeEntity`'s public constructor takes `id`, `sourceInstanceId`, `relativeDirectory`, `kind` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSmbScopeEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/RemoteSmbScopeEntity.kt:25
`RemoteSmbScopeTrackEntity`'s public constructor takes `scopeId`, `opaqueTrackId` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSmbScopeTrackEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/RemoteSmbScopeEntity.kt:48
`RemoteSourceEntity`'s public constructor takes `id`, `type`, `displayName`, `endpoint`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSourceEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/RemoteSourceEntity.kt:10
`RemoteTrackEntity`'s public constructor takes `sourceInstanceId`, `opaqueTrackId`, `title`, `artist`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteTrackEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:23
`SongLyricsOffsetEntity`'s public constructor takes `songId`, `mediaUri` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongLyricsOffsetEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/SongEntity.kt:12
`SongLyricsEntity`'s public constructor takes `songId`, `slot`, `revision`, `lyricsJson` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongLyricsEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/SongEntity.kt:19
`PendingSongLyricsEntity`'s public constructor takes `scanId`, `songId`, `revision`, `embeddedJson`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PendingSongLyricsEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/SongEntity.kt:28
`SongEntity`'s public constructor takes `id`, `title`, `artist`, `album`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/SongEntity.kt:38
`LibraryMetaEntity`'s public constructor takes `lastScanSource`, `sortField`, `sortDirection`, `fastScrollSectionsJson`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryMetaEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/java/com/mica/music/data/local/SongEntity.kt:150
What to do
Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
Other · Domain Modelling — How much of the domain uses strongly-typed ids vs raw Guid/string/int — adoption curve, not all-or-nothing.
Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. An id wrapper is recognised by VALUE SEMANTICS, not by being a struct — a record struct, a record class (`record ApartmentId(Guid Value)`) or a class declared by a typed-id base (`class MemberId : TypedIdValueBase`) all count, while a plain mutable class (reference equality) and a verb-phrase query record (`GetCustomerById`) do not. Deterministic, adoption percentage.
Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.
`Mutation.songId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — app/src/main/java/com/mica/music/data/PlaybackStatisticsRepository.kt:115
What to do
Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
Other · Domain Modelling — Whether one domain rule is decided — or one measurement produced — in more than one place, rather than living on the type that owns it.
Method: Neutral body surface plus Roslyn (DDD-gated), two arms. DECISION (Roslyn only): a predicate over a domain type's members judged in two or more types, where none of those decisions live on the owning type — operands of comparisons and relational property patterns only, so a member merely passed as an argument is not judged. DERIVATION: a plain all-numeric carrier of ≥2 members, with no base type and exactly one constructor, CONSTRUCTED as the result of a method (returned or assigned, never inline as an argument) in two or more types other than its own — the same measurement produced twice, which centralising the judgement does not fix. DERIVATION runs on every language whose frontend declares the produced-or-passed fact per construction (Roslyn and the Java sidecar today); a target with only the derivation arm carries an engine gap naming the decision arm as not assessed, and a frontend that declares nothing keeps the dimension not measured rather than clean. Single-member rules, test code and generated code are out of population for both. Advisory.
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.
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.
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.
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 4 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. — REDACTED:4
`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`. — build.gradle.kts:5
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.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
What to do
Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where we can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
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.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether 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/2 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.
`fetchManifestFromNetwork` 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`. — app/src/main/java/com/mica/music/data/update/AppUpdate.kt:130
`execute` 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`. — app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:18
What to do
Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
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.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
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.
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 (_: 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. — app/src/main/java/com/mica/music/ui/screens/player/view/VideoAlbumCoverHost.kt:174
`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. (×6) — app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:198, app/src/main/java/com/mica/music/data/scanner/AudioTechnicalProbe.kt:189, app/src/main/java/com/mica/music/data/scanner/AudioTrackProbe.kt:43, …
`catch (_: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×4) — app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:200, app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:455, app/src/main/java/com/mica/music/data/library/LibraryDirtySignalObserver.kt:157, …
Other · Code Health — Whether Kotlin's null safety is not undermined by not-null assertions — `String` cannot hold null and `String?` must be checked before use in every Kotlin module, and each `!!` is a run-time `NullPointerException` the author has told the compiler cannot happen.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 2 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 16 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 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.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 70 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: this repository's Kotlin imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. 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
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: roject :app
> Could not resolve com.github.Dimezis:BlurView:version-3.2.0.
> Could not get resource 'https://jitpack.io/com/github/Dimezis/BlurView/version-3.2.0/BlurView-version-3.2.0.…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it) This is a statement about this run, not a statement about your application: nothing here says the app is inaccessible, only that it was never run.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no data at rest for these controls to protect.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~67143 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 390 artifact(s) across its subprojects (176 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 — single-maintainer repository — bus factor is not applicable
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D21 Naming Consistency — D21 withholds its case and prefix conventions rows: 12 candidate(s) found and not reported.
D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed Kotlin surface was not measured.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .kt, .py, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — 1 binding ADR(s) state their decision in a language our ADR prohibition grammar does not read (undetermined); they were not checked.
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).
D32 Data Compliance (PII/GDPR) — 39 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).
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
DM12 Ambient inputs in the domain — no domain-layer types detected — ambient-input check not applicable
DM3 Integration-event coupling — no integration events detected — coupling check not applicable
DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
DM6 Domain ↔ infrastructure boundary — no domain-layer types detected — domain↔infrastructure boundary check not applicable
DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
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'.
P2 Observability — This repository's JVM source (1 module(s), 691 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Banned license: org.jellyfin.media3:media3-ffmpeg-decoder — `org.jellyfin.media3:media3-ffmpeg-decoder` 1.9.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.
MethodTooLong: NowPlayingLyricsExpandedKt.ExpandedLyricsPanel app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:88— MethodTooLong — ExpandedLyricsPanel runs 623 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 523 over it, 6.23× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SafAutoSyncPipeline.executeObservedSnapshot app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:201— MethodTooLong — executeObservedSnapshot runs 560 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 460 over it, 5.60× 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: DeviceAutoSyncPipeline.executeInternal app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:53— MethodTooLong — executeInternal runs 429 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 329 over it, 4.29× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HybridQaPlaybackReceiver.onReceive app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:37— MethodTooLong — onReceive runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79× 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: LibraryAutoSyncQaReceiver.onReceive app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:43— MethodTooLong — onReceive runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.57× 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: PlaybackQueueSheetKt.PlaybackQueueSheet app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:74— MethodTooLong — PlaybackQueueSheet runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50× 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: SettingsLyricsPanelKt.LyricsSettingsPanel app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt:47— MethodTooLong — LyricsSettingsPanel runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.38× 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: AppNavigationKt.AppNavigationMain app/src/main/java/com/mica/music/ui/navigation/AppNavigation.kt:80— MethodTooLong — AppNavigationMain runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: LibraryScanEngine.performScanLocked app/src/main/java/com/mica/music/data/library/LibraryScanEngine.kt:54— MethodTooLong — performScanLocked runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: LetterLyricsPrototypeKt.LetterLyricsPrototype app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:92— MethodTooLong — LetterLyricsPrototype 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: PlayerPlaybackChromeKt.PlayerPlaybackControlsSection app/src/main/java/com/mica/music/ui/components/PlayerPlaybackChrome.kt:174— MethodTooLong — PlayerPlaybackControlsSection runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10× 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: ExternalLyricsSettingsPanelKt.ExternalLyricsSettingsPanel app/src/main/java/com/mica/music/ui/screens/settings/ExternalLyricsSettingsPanel.kt:36— MethodTooLong — ExternalLyricsSettingsPanel runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01× 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: AudioMetadataProbe.probeTrack app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:304— MethodTooLong — probeTrack runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96× 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: RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:46— MethodTooLong — RemoteMusicSettingsPanel runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× 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: LibraryAutoSyncQaProfileService.runRoomAtomicityGate app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:597— MethodTooLong — runRoomAtomicityGate 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: LibraryAutoSyncQaReceiver.runExternalProviderPayloadGate app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1209— MethodTooLong — runExternalProviderPayloadGate 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: PhotoStackShadowPreviewScreenKt.PhotoStackShadowPreviewScreen app/src/main/java/com/mica/music/ui/screens/PhotoStackShadowPreviewScreen.kt:62— MethodTooLong — PhotoStackShadowPreviewScreen 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: AudioMetadataProbe.tagLibSong app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:557— MethodTooLong — tagLibSong runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: UsbSk02DescriptorPrototypeReceiver.onReceive app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:45— MethodTooLong — onReceive runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× 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: PlayerPageLayoutEngine.computeFrame app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:32— MethodTooLong — computeFrame runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× 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: LibraryAutoSyncQaProfileService.runTenKUnknownVerifyGate app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:387— MethodTooLong — runTenKUnknownVerifyGate runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71× 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: LibraryAutoSyncQaProfileService.runRoomPublicationTenKGate app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:822— MethodTooLong — runRoomPublicationTenKGate runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66× 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: CustomPlayerLowerPanelKt.CustomPlayerEditChrome app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:515— MethodTooLong — CustomPlayerEditChrome runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SettingsUsbHybridPanelKt.UsbHybridSettingsPanel app/src/main/java/com/mica/music/ui/screens/settings/SettingsUsbHybridPanel.kt:54— MethodTooLong — UsbHybridSettingsPanel runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.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: DeviceAutoSyncPipeline.executeDeviceNoChangeRetryAuthority app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:580— MethodTooLong — executeDeviceNoChangeRetryAuthority runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57× 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.
Hotspot: app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:229— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt changed 51 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 213 in NowPlayingScreenKt.NowPlayingContent at line 229. 16 of those changes were fix/bug commits, and the other 35 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.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/mica/music/ui/screens/home/HomeScreen.kt app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:106— app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 121 in HomeScreenKt.HomeScreen at line 106. 7 of those changes were fix/bug commits, and the other 34 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/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/mica/music/ui/screens/NowPlayingLyricsExpanded.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:88— app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in NowPlayingLyricsExpandedKt.ExpandedLyricsPanel at line 88. 6 of those changes were fix/bug commits, and the other 7 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.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/mica/music/playback/PlaybackRuntime.kt app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:598— app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in PlaybackRuntime.createPlayerListener at line 598. 10 of those changes were fix/bug commits, and the other 10 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/playback/PlaybackRuntime.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/mica/music/ui/screens/NowPlayingCoverSection.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:107— app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in NowPlayingCoverSectionKt.NowPlayingCoverSection at line 107. 8 of those changes were fix/bug commits, and the other 11 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.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/mica/music/media/MicaMediaService.kt app/src/main/java/com/mica/music/media/MicaMediaService.kt:537— app/src/main/java/com/mica/music/media/MicaMediaService.kt changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MicaMediaService.attachPlaybackStackOwners at line 537. 11 of those changes were fix/bug commits, and the other 31 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/media/MicaMediaService.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/mica/music/ui/screens/settings/SettingsScreen.kt app/src/main/java/com/mica/music/ui/screens/settings/SettingsScreen.kt:68— app/src/main/java/com/mica/music/ui/screens/settings/SettingsScreen.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in SettingsScreenKt.SettingsScreen at line 68. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/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/mica/music/media/NotificationLyricsCoordinator.kt app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:722— app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in NotificationLyricsCoordinatorKt.buildExternalLyricsLine at line 722. 5 of those changes were fix/bug commits, and the other 11 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.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/mica/music/ui/screens/settings/SettingsLyricsPanel.kt app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt:47— app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SettingsLyricsPanelKt.LyricsSettingsPanel at line 47. 3 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.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/mica/music/data/library/SafAutoSyncPipeline.kt app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:201— app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in SafAutoSyncPipeline.executeObservedSnapshot at line 201. 2 of those changes were fix/bug commits, and the other 3 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.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/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:37— app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in HybridQaPlaybackReceiver.onReceive at line 37. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.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/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:32— app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in PlayerPageLayoutEngine.computeFrame at line 32. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.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/mica/music/ui/screens/HomeBrowseContent.kt app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:121— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in HomeBrowseContentKt.HomeBrowseContent at line 121. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.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/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:90— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in LibraryAutoSyncQaProfileService.onStartCommand at line 90. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.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/mica/music/ui/components/PlaybackQueueSheet.kt app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:74— app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in PlaybackQueueSheetKt.PlaybackQueueSheet at line 74. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.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/mica/music/ui/screens/home/SmbBrowserPane.kt app/src/main/java/com/mica/music/ui/screens/home/SmbBrowserPane.kt:68— app/src/main/java/com/mica/music/ui/screens/home/SmbBrowserPane.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in SmbBrowserPaneKt.SmbBrowserContent at line 68. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/home/SmbBrowserPane.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/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:46— app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel at line 46. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.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/mica/music/ui/screens/CustomPlayerLowerPanel.kt app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:95— app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in CustomPlayerLowerPanelKt.CustomPlayerPagePanel at line 95. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.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/mica/music/ui/screens/home/HomeLibraryStats.kt app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.kt:109— app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in HomeLibraryStatsKt.resolveLibraryStatsBarModel at line 109. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.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/mica/music/ui/components/PlayerSheetHost.kt app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt:72— app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PlayerSheetHostKt.PlayerSheetHost 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.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/mica/music/ui/screens/LetterLyricsPrototype.kt app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:92— app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in LetterLyricsPrototypeKt.LetterLyricsPrototype at line 92. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.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/mica/music/ui/screens/PlayerLowerPanel.kt app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:44— app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PlayerLowerPanelKt.PlayerLowerPanelSection at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.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/mica/music/ui/components/SongActionMenuSheet.kt app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:458— app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SongActionMenuSheetKt.AddToPlaylistSheet at line 458. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.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/mica/music/data/scanner/AudioMetadataProbe.kt app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:304— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AudioMetadataProbe.probeTrack at line 304. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.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/mica/music/ui/components/LyricsDisplay.kt app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:239— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in LyricsDisplayKt.LyricLineBlock at line 239. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/components/LyricsDisplay.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.
FileTooLong: screens/NowPlayingScreen.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt— FileTooLong — 2018 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1518 over it, 4.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: theme/StarMapGlBackground.kt app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt— FileTooLong — 1890 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1390 over it, 3.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: screens/HomeBrowseContent.kt app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt— FileTooLong — 1625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1125 over it, 3.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: playback/PlaybackRuntime.kt app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt— FileTooLong — 1551 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: PlaybackRuntime (98-2004). The bar is 500 significant lines; this is 1051 over it, 3.10× 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: data/LibraryAutoSyncQaReceiver.kt app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt— FileTooLong — 1387 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: LibraryAutoSyncQaReceiver (42-1806). The bar is 500 significant lines; this is 887 over it, 2.77× 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: data/LibraryAutoSyncQaProfileService.kt app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt— FileTooLong — 1373 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: LibraryAutoSyncQaProfileService (65-1734). The bar is 500 significant lines; this is 873 over it, 2.75× 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: usbprototype/UsbSk02DescriptorPrototypeReceiver.kt app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt— FileTooLong — 1318 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: UsbSk02DescriptorPrototypeReceiver (44-1522). The bar is 500 significant lines; this is 818 over it, 2.64× 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: view/PhotoStackTransitionView.kt app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt— FileTooLong — 1226 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: PhotoStackTransitionView (100-1551). The bar is 500 significant lines; this is 726 over it, 2.45× 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: home/HomeScreen.kt app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt— FileTooLong — 1171 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: val (103-1460). The bar is 500 significant lines; this is 671 over it, 2.34× 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: scanner/AudioMetadataProbe.kt app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt— FileTooLong — 1133 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 633 over it, 2.27× 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: view/ParticleCoverRenderer.kt app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt— FileTooLong — 1111 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: ParticleCoverRenderer (21-1035). The bar is 500 significant lines; this is 611 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: screens/LetterLyricsPrototype.kt app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt— FileTooLong — 1070 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 570 over it, 2.14× 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: scanner/FolderScanner.kt app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt— FileTooLong — 1055 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 555 over it, 2.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: screens/NowPlayingLyricsExpanded.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt— FileTooLong — 985 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 485 over it, 1.97× 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: view/CoverFlowCarouselView.kt app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt— FileTooLong — 981 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: CoverFlowCarouselView (58-1293). The bar is 500 significant lines; this is 481 over it, 1.96× 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: screens/CustomPlayerLowerPanel.kt app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt— FileTooLong — 919 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 419 over it, 1.84× 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: widget/MicaPlaybackWidget.kt app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt— FileTooLong — 916 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: MicaPlaybackWidget (58-1132). The bar is 500 significant lines; this is 416 over it, 1.83× 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/SafAutoSyncPipeline.kt app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt— FileTooLong — 851 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SafAutoSyncPipeline (16-985). The bar is 500 significant lines; this is 351 over it, 1.70× 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: local/LibraryRepository.kt app/src/main/java/com/mica/music/data/local/LibraryRepository.kt— FileTooLong — 786 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: LibraryRepository (97-984). The bar is 500 significant lines; this is 286 over it, 1.57× 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: media/MicaMediaService.kt app/src/main/java/com/mica/music/media/MicaMediaService.kt— FileTooLong — 757 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: MicaMediaService (63-1010). The bar is 500 significant lines; this is 257 over it, 1.51× 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: theme/RainGlassBackground.kt app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt— FileTooLong — 750 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 250 over it, 1.50× 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/DeviceAutoSyncPipeline.kt app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt— FileTooLong — 744 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: DeviceAutoSyncPipeline (16-818). The bar is 500 significant lines; this is 244 over it, 1.49× 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/PlayerPageLayoutEngine.kt app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt— FileTooLong — 716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 216 over it, 1.43× 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: overlay/DesktopLyricsOverlayService.kt app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt— FileTooLong — 708 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 208 over it, 1.42× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: media/NotificationLyricsCoordinator.kt app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt— FileTooLong — 688 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 188 over it, 1.38× 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.
TooManyMethods: LyricsPreferences app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:52— TooManyMethods — 115 methods. The bar is 30 methods; this is 85 over it, 3.83× 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: PlaybackRuntime app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:98— TooManyMethods — 112 methods. The bar is 30 methods; this is 82 over it, 3.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: AppUiSettings app/src/main/java/com/mica/music/data/AppUiSettings.kt:21— TooManyMethods — 100 methods. The bar is 30 methods; this is 70 over it, 3.33× 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: PhotoStackTransitionView app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:100— TooManyMethods — 71 methods. The bar is 30 methods; this is 41 over it, 2.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: CoverFlowCarouselView app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:58— TooManyMethods — 70 methods. The bar is 30 methods; this is 40 over it, 2.33× 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: MusicLibrary app/src/main/java/com/mica/music/data/MusicLibrary.kt:36— 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: PlaybackUiPreferences app/src/main/java/com/mica/music/data/preferences/PlaybackUiPreferences.kt:26— TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× 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: PlayerController app/src/main/java/com/mica/music/playback/PlayerController.kt:55— TooManyMethods — 47 methods. The bar is 30 methods; this is 17 over it, 1.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: LibraryRepository app/src/main/java/com/mica/music/data/local/LibraryRepository.kt:97— TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× 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: SoftwareEqualizer app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:25— TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× 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: LibraryBrowse app/src/main/java/com/mica/music/data/LibraryBrowse.kt:172— TooManyMethods — 44 methods. The bar is 30 methods; this is 14 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.
TooManyMethods: MusicLibraryBacking app/src/main/java/com/mica/music/data/library/MusicLibraryBacking.kt:38— TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.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: EmbeddedLyricsReader app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:16— TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: ParticleCoverRenderer app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:21— TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: DefaultUsbOutputCoordinator app/src/main/java/com/mica/music/media/UsbOutputCoordinator.kt:98— 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: PlaylistStore app/src/main/java/com/mica/music/data/PlaylistStore.kt:55— 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: UsbHybridPcmAudioSink app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridPcmAudioSink.kt:19— 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: DynamicArtworkBackgroundView app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:105— 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: RemoteCatalogRepository app/src/main/java/com/mica/music/data/remote/RemoteCatalogRepository.kt:31— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: AudioMetadataProbe app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:107— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: MicaCompositePlayer app/src/main/java/com/mica/music/media/MicaCompositePlayer.kt:25— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: MicaMediaService app/src/main/java/com/mica/music/media/MicaMediaService.kt:63— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: RoomLibraryStore app/src/main/java/com/mica/music/data/RoomLibraryStore.kt:21— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. Most of these members implement data.LibraryStore (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: AlbumArtCache app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:15— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: UsbSk02AudioOutput app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02AudioOutputProvider.kt:164— 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.
ClassTooLong: PlaybackRuntime app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:98— ClassTooLong — 1463 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 400 significant lines; this is 1063 over it, 3.66× 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: LibraryAutoSyncQaReceiver app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:42— ClassTooLong — 1355 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 955 over it, 3.39× 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: LibraryAutoSyncQaProfileService app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:65— ClassTooLong — 1318 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 918 over it, 3.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: UsbSk02DescriptorPrototypeReceiver app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:44— ClassTooLong — 1167 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 767 over it, 2.92× 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: PhotoStackTransitionView app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:100— ClassTooLong — 1137 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 737 over it, 2.84× 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: CoverFlowCarouselView app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:58— ClassTooLong — 931 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 531 over it, 2.33× 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: ParticleCoverRenderer app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:21— ClassTooLong — 847 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 447 over it, 2.12× 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: MicaPlaybackWidget app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:58— ClassTooLong — 825 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 425 over it, 2.06× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: SafAutoSyncPipeline app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:16— ClassTooLong — 784 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 384 over it, 1.96× 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: MicaMediaService app/src/main/java/com/mica/music/media/MicaMediaService.kt:63— ClassTooLong — 702 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 302 over it, 1.76× 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: LibraryRepository app/src/main/java/com/mica/music/data/local/LibraryRepository.kt:97— ClassTooLong — 691 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 291 over it, 1.73× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: StarMapRenderer app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:1297— ClassTooLong — 652 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 252 over it, 1.63× 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: DeviceAutoSyncPipeline app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:16— ClassTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 251 over it, 1.63× 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: AppUiSettings app/src/main/java/com/mica/music/data/AppUiSettings.kt:21— ClassTooLong — 623 significant lines (blank, comment-only and punctuation-only lines excluded), 100 methods. The bar is 400 significant lines; this is 223 over it, 1.56× 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: DefaultUsbOutputCoordinator app/src/main/java/com/mica/music/media/UsbOutputCoordinator.kt:98— ClassTooLong — 552 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 152 over it, 1.38× 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: LibrarySyncScheduler app/src/main/java/com/mica/music/data/library/LibrarySyncScheduler.kt:68— ClassTooLong — 498 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 98 over it, 1.25× 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: PlaylistStore app/src/main/java/com/mica/music/data/PlaylistStore.kt:55— ClassTooLong — 467 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 67 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: SoftwareEqualizer app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:25— ClassTooLong — 435 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 35 over it, 1.09× 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: TestDocumentsProvider app/src/debug/java/com/mica/music/data/TestDocumentsProvider.kt:22— ClassTooLong — 425 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 25 over it, 1.06× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (9 lines × 2) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1026— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1026-1034 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1037-1045 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:138— app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:138-146 | app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:176-184 — 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/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:138` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) app/src/debug/java/com/mica/music/media/usbprototype/UsbKernelDriverReconnectProtocol.kt:25— app/src/debug/java/com/mica/music/media/usbprototype/UsbKernelDriverReconnectProtocol.kt:25-33 | app/src/debug/java/com/mica/music/media/usbprototype/UsbKernelDriverReconnectProtocol.kt:38-46 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:374— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:374-382 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:588-596 — 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/mica/music/data/scanner/DsdMetadataReader.kt:374` 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 (9 lines × 2) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:122— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:122-130 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:64-72 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:131` calls `when` and `app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:73` 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 lines × 2) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:177— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:177-185 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:168-176 — 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/mica/music/data/scanner/EncoderSettingsReader.kt:177` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:47— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:47-55 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:55-63 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.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 (9 lines × 2) app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:185— app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:185-193 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:214-222 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:185` 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 (9 lines × 2) app/src/main/java/com/mica/music/media/ExternalMediaItemCodec.kt:40— app/src/main/java/com/mica/music/media/ExternalMediaItemCodec.kt:40-48 | app/src/main/java/com/mica/music/media/SongMediaItemCodec.kt:71-79 — 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/mica/music/media/ExternalMediaItemCodec.kt:40` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridPcmAudioSink.kt:85— app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridPcmAudioSink.kt:85-93 | app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridPcmAudioSink.kt:405-413 — 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/mica/music/media/usbhybrid/UsbHybridPcmAudioSink.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.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:686— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:686-694 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1811-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/mica/music/ui/components/SongListPanel.kt:686` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1821` calls `placeWithLayer`, `toInt` and `app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:695` 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 lines × 2) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:609— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:609-617 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:712-720 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:398— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:398-406 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:453-461 — 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/mica/music/data/scanner/EncoderSettingsReader.kt:398` 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1051— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1051-1059 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:550-558 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1202— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1202-1210 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1310-1318 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1476— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1476-1487 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1813-1821 — 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/mica/music/ui/screens/NowPlayingScreen.kt:1476` 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/mica/music/ui/theme/BlurredCoverBackground.kt:228— app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:228-236 | app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:237-245 — 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/mica/music/ui/theme/BlurredCoverBackground.kt:228` 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/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:416— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:416-424 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:511-519 — 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/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:416` 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:125— app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:125-133 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:255-263 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:265` calls `getColumnIndex` and `app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:134` 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.
DM11 · Constructible invalid state· Constructible in an invalid state · ×18
Constructible in an invalid state: BrowseGroupEntity app/src/main/java/com/mica/music/data/local/BrowseGroupEntity.kt:10— `BrowseGroupEntity`'s public constructor takes `kind`, `groupKey`, `title`, `subtitle`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `BrowseGroupEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibrarySyncCheckpointEntity app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:22— `LibrarySyncCheckpointEntity`'s public constructor takes `source`, `stableIdentity`, `partitionKey`, `providerVersion`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibrarySyncCheckpointEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryRetryItemEntity app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:46— `LibraryRetryItemEntity`'s public constructor takes `source`, `stableIdentity`, `retryKey`, `stableObjectKey`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryRetryItemEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryFollowupOutboxEntity app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:74— `LibraryFollowupOutboxEntity`'s public constructor takes `eventId`, `action`, `source`, `stableIdentity`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryFollowupOutboxEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryMembershipEvidenceEntity app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:92— `LibraryMembershipEvidenceEntity`'s public constructor takes `source`, `stableIdentity`, `stableObjectKey`, `songId`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryMembershipEvidenceEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryUserExclusionEntity app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:107— `LibraryUserExclusionEntity`'s public constructor takes `source`, `stableIdentity`, `stableObjectKey` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryUserExclusionEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryStateEntity app/src/main/java/com/mica/music/data/local/LibraryStateEntity.kt:18— `LibraryStateEntity`'s public constructor takes `intent`, `access`, `activeSource`, `activeStableIdentity`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryStateEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: PlaylistEntity app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:21— `PlaylistEntity`'s public constructor takes `id`, `name`, `sortField`, `sortDirection`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PlaylistEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: PlaylistSongEntity app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:44— `PlaylistSongEntity`'s public constructor takes `playlistId`, `songId` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PlaylistSongEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: RemoteSmbScopeEntity app/src/main/java/com/mica/music/data/local/RemoteSmbScopeEntity.kt:25— `RemoteSmbScopeEntity`'s public constructor takes `id`, `sourceInstanceId`, `relativeDirectory`, `kind` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSmbScopeEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: RemoteSmbScopeTrackEntity app/src/main/java/com/mica/music/data/local/RemoteSmbScopeEntity.kt:48— `RemoteSmbScopeTrackEntity`'s public constructor takes `scopeId`, `opaqueTrackId` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSmbScopeTrackEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: RemoteSourceEntity app/src/main/java/com/mica/music/data/local/RemoteSourceEntity.kt:10— `RemoteSourceEntity`'s public constructor takes `id`, `type`, `displayName`, `endpoint`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteSourceEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: RemoteTrackEntity app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:23— `RemoteTrackEntity`'s public constructor takes `sourceInstanceId`, `opaqueTrackId`, `title`, `artist`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `RemoteTrackEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: SongLyricsOffsetEntity app/src/main/java/com/mica/music/data/local/SongEntity.kt:12— `SongLyricsOffsetEntity`'s public constructor takes `songId`, `mediaUri` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongLyricsOffsetEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: SongLyricsEntity app/src/main/java/com/mica/music/data/local/SongEntity.kt:19— `SongLyricsEntity`'s public constructor takes `songId`, `slot`, `revision`, `lyricsJson` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongLyricsEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: PendingSongLyricsEntity app/src/main/java/com/mica/music/data/local/SongEntity.kt:28— `PendingSongLyricsEntity`'s public constructor takes `scanId`, `songId`, `revision`, `embeddedJson`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `PendingSongLyricsEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: SongEntity app/src/main/java/com/mica/music/data/local/SongEntity.kt:38— `SongEntity`'s public constructor takes `id`, `title`, `artist`, `album`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `SongEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: LibraryMetaEntity app/src/main/java/com/mica/music/data/local/SongEntity.kt:150— `LibraryMetaEntity`'s public constructor takes `lastScanSource`, `sortField`, `sortDirection`, `fastScrollSectionsJson`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `LibraryMetaEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Duplicated block (7 lines × 2) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:245— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:245-251 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:780-786 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:312— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:312-318 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:334-340 — 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/mica/music/audio/eq/SoftwareEqualizer.kt:312` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:341` calls `put`, `toByte` and `app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:319` 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/mica/music/data/library/SafShadowCanonicalProjection.kt:77— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:77-83 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:158-167 — 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/mica/music/data/library/SafShadowCanonicalProjection.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:169` calls `add` and `app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:88` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:319— app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:319-325 | app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:380-386 — 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/mica/music/data/local/StorageDiagnostics.kt:319` 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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:94— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:94-100 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:108-114 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/media/ExternalMediaItemCodec.kt:40— app/src/main/java/com/mica/music/media/ExternalMediaItemCodec.kt:40-46 | app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:64-70 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:20— app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:20-27 | app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:64-70 — 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/mica/music/media/RemoteMediaItemProvider.kt:20` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:61— app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:61-67 | app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:91-97 — 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/mica/music/ui/components/PlaybackTuningSheet.kt:61` 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/mica/music/ui/screens/LyricsCloudLayoutWarm.kt:137— app/src/main/java/com/mica/music/ui/screens/LyricsCloudLayoutWarm.kt:137-143 | app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:99-105 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:538— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:538-544 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:290-296 — 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 (7 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1150— app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1150-1156 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1158-1164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/data/LyricDisplayRows.kt:146— app/src/main/java/com/mica/music/data/LyricDisplayRows.kt:146-152 | app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:484-490 — 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/mica/music/data/LyricDisplayRows.kt:146` 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/mica/music/data/remote/navidrome/NavidromeArtworkRequestResolver.kt:16— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkRequestResolver.kt:16-22 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeStreamRequestResolver.kt:24-30 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:644— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:644-650 | app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:676-682 — 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/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:644` 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/mica/music/data/scanner/AudioMetadataProbe.kt:887— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:887-893 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:62-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.
Duplicated block (7 lines × 2) app/src/main/java/com/mica/music/data/PlaylistStore.kt:211— app/src/main/java/com/mica/music/data/PlaylistStore.kt:211-217 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:559-565 — 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/mica/music/data/PlaylistStore.kt:211` 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 (6 lines × 2) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaPickerActivity.kt:84— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaPickerActivity.kt:84-89 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:203-208 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1476— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1476-1481 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1518-1523 — 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 (6 lines × 2) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:87— app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:87-92 | app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:94-99 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:147— app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:147-152 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:281-286 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:113— app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:113-118 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:135-140 — 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/mica/music/data/scanner/Mp4LyricsReader.kt:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/mica/music/data/scanner/Mp4LyricsReader.kt:153— app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:153-158 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:167-172 — 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/mica/music/data/scanner/Mp4LyricsReader.kt:153` 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 (6 lines × 2) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:445— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:445-450 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1562-1567 — 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/mica/music/ui/theme/DynamicArtworkBackground.kt:89— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:89-94 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:69-74 — 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/mica/music/ui/theme/DynamicArtworkBackground.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 (6 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:388— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:388-393 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2085-2090 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:158— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:158-163 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:166-171 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:520— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:520-525 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1649-1654 — 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/mica/music/ui/screens/HomeBrowseContent.kt:1649` 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/mica/music/data/remote/smb/SmbArtworkTransport.kt:101— app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:101-106 | app/src/main/java/com/mica/music/data/remote/smb/SmbLyricsTransport.kt:104-109 — 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/mica/music/data/remote/smb/SmbArtworkTransport.kt:101` 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:246— app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:246-251 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:411-416 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:578— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:578-583 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:689-694 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:586— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:586-591 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:697-702 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:601— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:601-606 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:681-686 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:900— app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:900-911 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:1014-1025 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:211— app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:211-222 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:315-326 — 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:211` 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:210` calls `intOrZero`, `coerceAtLeast` and `app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:314` 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/mica/music/data/scanner/MediaStorePresenceInventory.kt:58— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:58-69 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:104-115 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:58` 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/mica/music/ui/components/PlayerPlaybackChrome.kt:235— app/src/main/java/com/mica/music/ui/components/PlayerPlaybackChrome.kt:235-246 | app/src/main/java/com/mica/music/ui/components/PlayerPlaybackChrome.kt:371-382 — 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/mica/music/ui/components/PlayerPlaybackChrome.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 (12 lines × 2) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:333— app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:333-344 | app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:352-363 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:333` 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/mica/music/ui/screens/AboutScreen.kt:299— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:299-310 | app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:327-338 — 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/mica/music/ui/screens/AboutScreen.kt:299` 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/mica/music/ui/screens/player/PlayerPageState.kt:125— app/src/main/java/com/mica/music/ui/screens/player/PlayerPageState.kt:125-136 | app/src/main/java/com/mica/music/ui/screens/player/PlayerPageState.kt:138-149 — 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/mica/music/ui/screens/player/PlayerPageState.kt:125` 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:788— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:788-799 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1421-1432 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:788` 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/mica/music/ui/screens/settings/ArtistSplitSettingsDialog.kt:49— app/src/main/java/com/mica/music/ui/screens/settings/ArtistSplitSettingsDialog.kt:49-60 | app/src/main/java/com/mica/music/ui/screens/settings/SettingsExcludedDirectoriesDialog.kt:51-62 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/settings/ArtistSplitSettingsDialog.kt:49` 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/mica/music/widget/MicaPlaybackWidget.kt:548— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:548-559 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:637-648 — 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/mica/music/widget/MicaPlaybackWidget.kt:548` 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/mica/music/ui/screens/HomeBrowseContent.kt:1236— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1236-1247 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1287-1300 — 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/mica/music/ui/screens/HomeBrowseContent.kt:1236` 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 (12 lines × 2) app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:77— app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:77-88 | app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:107-118 — 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/mica/music/ui/components/PlaybackTuningSheet.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 (12 lines × 2) app/src/main/java/com/mica/music/ui/screens/settings/SettingsExcludedDirectoriesDialog.kt:65— app/src/main/java/com/mica/music/ui/screens/settings/SettingsExcludedDirectoriesDialog.kt:65-76 | app/src/main/java/com/mica/music/ui/screens/settings/SettingsExcludedDirectoriesDialog.kt:90-101 — 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/mica/music/ui/screens/settings/SettingsExcludedDirectoriesDialog.kt:65` 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/mica/music/data/library/AutoSyncPublicationAuthority.kt:34— app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:34-47 | app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:98-111 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:48` calls `isNotEmpty` and `app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:112` 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/mica/music/data/library/SafShadowObjectProbeExecutor.kt:432— app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:432-445 | app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:504-517 — 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/mica/music/data/library/SafShadowObjectProbeExecutor.kt:432` 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/mica/music/data/scanner/DeviceObjectRevisionReader.kt:238— app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:238-251 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:333-346 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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/mica/music/ui/screens/HomeBrowseContent.kt:380— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:380-393 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1190-1203 — 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/mica/music/ui/screens/HomeBrowseContent.kt:380` 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/mica/music/ui/screens/HomeBrowseContent.kt:623— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:623-636 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:978-991 — 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/mica/music/ui/screens/HomeBrowseContent.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.
Duplicated block (14 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:361— app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:361-374 | app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:441-454 — 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 (14 lines × 2) app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanelMetadata.kt:173— app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanelMetadata.kt:173-186 | app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanelMetadata.kt:189-202 — 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/mica/music/ui/screens/PlayerLowerPanelMetadata.kt:173` 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/mica/music/widget/MicaPlaybackWidget.kt:787— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:787-800 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:835-848 — 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/mica/music/widget/MicaPlaybackWidget.kt:787` 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/mica/music/data/remote/smb/SmbArtworkTransport.kt:41— app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:41-54 | app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:69-82 — 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/mica/music/data/remote/smb/SmbArtworkTransport.kt:41` 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 (14 lines × 2) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:626— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:626-639 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:665-678 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) app/src/perf/java/com/mica/music/perf/LandscapeCapacityActivity.kt:103— app/src/perf/java/com/mica/music/perf/LandscapeCapacityActivity.kt:103-116 | app/src/perf/java/com/mica/music/perf/LandscapeCapacityActivity.kt:145-158 — 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/perf/java/com/mica/music/perf/LandscapeCapacityActivity.kt:103` 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/mica/music/data/library/LibraryPublicationAuthority.kt:50— app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:50-59 | app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:91-100 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:90` calls `elapsedRealtimeNanos` and `app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:49` 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 (10 lines × 2) app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:442— app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:442-451 | app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:510-519 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:100— app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:100-109 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:213-222 — 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:100` 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/mica/music/data/scanner/MediaStorePresenceInventory.kt:287— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:287-296 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:361-370 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:287` 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/mica/music/ui/screens/home/HomeLibraryAccess.kt:63— app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryAccess.kt:63-72 | app/src/main/java/com/mica/music/ui/screens/settings/SettingsLibraryAccess.kt:40-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. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryAccess.kt:63` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (10 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:329— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:329-338 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:435-444 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:340` calls `updateCurrentIndex` and `app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:446` 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:719— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:719-728 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:352-361 — 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:719` 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/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:118— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:118-127 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:94-103 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt` and `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:779— app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:779-788 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:958-967 — 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/mica/music/data/library/DeviceAutoSyncPipeline.kt:779` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:36— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:36-45 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:39-48 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt` and `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:36` 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/mica/music/ui/components/BrowseGroupDisplaySheet.kt:64— app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:64-73 | app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt:102-111 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt` and `app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:64` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) app/src/main/java/com/mica/music/data/library/DeviceShadowRetryPlanner.kt:77— app/src/main/java/com/mica/music/data/library/DeviceShadowRetryPlanner.kt:77-84 | app/src/main/java/com/mica/music/data/library/SafShadowRetryPlanner.kt:65-72 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) app/src/main/java/com/mica/music/data/remote/smb/SmbSeekableByteSource.kt:19— app/src/main/java/com/mica/music/data/remote/smb/SmbSeekableByteSource.kt:19-26 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavSeekableByteSource.kt:29-36 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/data/remote/webdav/WebDavSeekableByteSource.kt:28` calls `check`, `get` and `app/src/main/java/com/mica/music/data/remote/smb/SmbSeekableByteSource.kt:18` 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/mica/music/data/remote/smb/SmbSourceSync.kt:74— app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:74-81 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:133-140 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt` and `app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:74` 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/mica/music/data/scanner/AudioMetadataProbe.kt:876— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:876-883 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:132-139 — 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/mica/music/data/scanner/AudioMetadataProbe.kt:876` 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 (8 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:81— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:81-88 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:418-425 — 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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:81` 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:772— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:772-779 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:726-733 — 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:772` 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/mica/music/ui/theme/Theme.kt:122— app/src/main/java/com/mica/music/ui/theme/Theme.kt:122-129 | app/src/main/java/com/mica/music/ui/theme/Theme.kt:134-141 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:595— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:595-602 | app/src/main/java/com/mica/music/media/fx/SoundFxEngine.kt:213-220 — 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 (8 lines × 2) app/src/main/java/com/mica/music/data/PlayerInfoVisibility.kt:80— app/src/main/java/com/mica/music/data/PlayerInfoVisibility.kt:80-87 | app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:299-306 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:219— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:219-226 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:162-169 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) app/src/main/java/com/mica/music/ui/screens/home/HomeStatsBar.kt:61— app/src/main/java/com/mica/music/ui/screens/home/HomeStatsBar.kt:61-68 | app/src/main/java/com/mica/music/ui/screens/home/HomeStatsBar.kt:69-76 — 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/mica/music/ui/screens/home/HomeStatsBar.kt:61` 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.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/ui/screens/player/view/VideoAlbumCoverHost.kt:174— `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) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:198— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/AudioTechnicalProbe.kt:189— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/AudioTrackProbe.kt:43— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:268— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:200— `catch (_: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:455— `catch (_: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/VideoCoverPosterPrefetcher.kt:162— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/scanner/VideoCoverPosterStore.kt:50— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/library/LibraryDirtySignalObserver.kt:157— `catch (_: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/java/com/mica/music/data/library/LibraryDirtySignalObserver.kt:256— `catch (_: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Duplicated block (16 lines × 2) app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:473— app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:473-488 | app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:527-542 — 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 (16 lines × 2) app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:75— app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:75-90 | app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:106-121 — 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/mica/music/data/remote/RemoteSourceManager.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. 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 (16 lines × 2) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:237— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:237-252 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:313-328 — 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 (16 lines × 2) app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:63— app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:63-78 | app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt:50-65 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt` and `app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:63` 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/mica/music/ui/components/SongActionMenuSheet.kt:111— app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:111-126 | app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverRenderers.kt:456-471 — 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/mica/music/ui/components/SongActionMenuSheet.kt:111` 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/mica/music/ui/screens/MetadataDebugScreen.kt:173— app/src/main/java/com/mica/music/ui/screens/MetadataDebugScreen.kt:173-188 | app/src/main/java/com/mica/music/ui/screens/SongDetailScreen.kt:74-89 — 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/mica/music/ui/screens/MetadataDebugScreen.kt:173` 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/mica/music/ui/screens/SongDetailScreen.kt:73` calls `micaAppBackground` and `app/src/main/java/com/mica/music/ui/screens/MetadataDebugScreen.kt:172` 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 (16 lines × 2) app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:137— app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:137-152 | app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:284-299 — 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/mica/music/ui/screens/PlayerLowerPanel.kt:137` 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/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:669— app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:669-684 | app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:692-707 — 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 (16 lines × 2) app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:273— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:273-288 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:204-219 — 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/mica/music/ui/theme/RainGlassBackground.kt:273` 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/mica/music/data/AppHiResBadgeImporter.kt:34— app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:34-49 | app/src/main/java/com/mica/music/data/AppLetterSealImporter.kt:51-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:352— app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:352-364 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:177-189 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:464— app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:464-476 | app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:858-870 — 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 (13 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:52— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:52-64 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:385-397 — 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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:52` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 2) app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:83— app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:83-95 | app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt:69-81 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt` and `app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:83` 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/mica/music/ui/components/CoverEdgeProgressBar.kt:49— app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:49-61 | app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt:36-48 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt` and `app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:49` 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/mica/music/ui/components/SongListPanel.kt:537— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:537-549 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1666-1678 — 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/mica/music/ui/components/SongListPanel.kt:537` 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 (13 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:337— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:337-349 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:170-182 — 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/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:21— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:21-33 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:24-36 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt` and `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:21` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 2) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:967— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:967-979 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1048-1060 — 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/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:967` 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.
Change coupling: LyricsPreferences.kt ↔ SettingsLyricsPanel.kt app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:1— `app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt` and `app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt` change together 87% of the time (13 of the 15 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 13 shared commits counted here, the most recent 3 are `faaa89e8` feat(lyrics): add configurable current line positioning; `1ba407a7` feat: add Lyricon lyrics provider integration; `3f2fd4ac` feat: move external lyrics into subpage — run `git show` on any of them.
Change coupling: NowPlayingCoverSection.kt ↔ NowPlayingScreen.kt app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:1— `app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt` and `app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt` change together 68% of the time (19 of the 28 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 19 shared commits counted here, the most recent 3 are `24cda2d8` feat(player): blend landscape standard cover into background; `cde626d1` feat: expand custom standard player editing; `628ae4a9` refactor(player): centralize cover renderers and geometry — run `git show` on any of them.
Change coupling: HomeBrowseContent.kt ↔ HomeLibraryStats.kt app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1— `app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt` and `app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.kt` change together 64% of the time (7 of the 11 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 7 shared commits counted here, the most recent 3 are `9e0a955e` feat(remote): merge remote artists and albums; `efc55ac5` feat(remote): integrate playback stats and recent history; `faa0ed0a` Add custom song order and artist count sort — run `git show` on any of them.
Change coupling: PlayerSheetHost.kt ↔ AppNavigation.kt app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt:1— `app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt` and `app/src/main/java/com/mica/music/ui/navigation/AppNavigation.kt` change together 62% of the time (10 of the 16 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 10 shared commits counted here, the most recent 3 are `89573ff3` fix(playback): unify progress and lyric presentation clock; `cb3d2746` feat(player): add direct custom layout editor; `a2b265ec` feat(library): preserve album and song identity — run `git show` on any of them.
Change coupling: AppUiSettings.kt ↔ Theme.kt app/src/main/java/com/mica/music/data/AppUiSettings.kt:1— `app/src/main/java/com/mica/music/data/AppUiSettings.kt` and `app/src/main/java/com/mica/music/ui/theme/Theme.kt` change together 62% of the time (8 of the 13 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 8 shared commits counted here, the most recent 3 are `9ea74226` feat(lyrics): 支持文件自带读音轨(TTML + LRC/SPL); `c9249375` feat: complete custom wallpaper workflow; `8481c437` Add custom wallpaper for main UI backgrounds. — run `git show` on any of them.
Change coupling: AppUiSettings.kt ↔ PlaybackUiPreferences.kt app/src/main/java/com/mica/music/data/AppUiSettings.kt:1— `app/src/main/java/com/mica/music/data/AppUiSettings.kt` and `app/src/main/java/com/mica/music/data/preferences/PlaybackUiPreferences.kt` change together 56% of the time (10 of the 18 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 10 shared commits counted here, the most recent 3 are `623d4fce` feat(playback): add opt-in auto-play on app launch; `c2b0ae09` feat(player): show lyrics on polaroid immersive captions; `b3322001` refactor: fix playback queue icon geometry — run `git show` on any of them.
Change coupling: LyricsDisplay.kt ↔ NowPlayingScreen.kt app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:1— `app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt` and `app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt` change together 50% of the time (8 of the 16 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 8 shared commits counted here, the most recent 3 are `89573ff3` fix(playback): unify progress and lyric presentation clock; `e984f4bf` fix: polish landscape STANDARD track-change and classic lyrics; `b84f8abe` feat: add lyrics word animation presets — run `git show` on any of them.
Change coupling: SongRow.kt ↔ HomeBrowseContent.kt app/src/main/java/com/mica/music/ui/components/SongRow.kt:1— `app/src/main/java/com/mica/music/ui/components/SongRow.kt` and `app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt` change together 50% of the time (5 of the 10 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 5 shared commits counted here, the most recent 3 are `18f7fbb1` feat(library): add optional HQ/SQ/HR quality badges on song rows; `523bc418` refactor(model): decouple song data from UI; `c5180ee4` perf: deduplicate cover decoding and reflection baking — run `git show` on any of them.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×8
Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:43— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:43-355 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:750-797 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1511-1566 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1571-1686 — 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/mica/music/data/AppHiResBadgeImporter.kt:64— app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:64-77 | app/src/main/java/com/mica/music/data/AppLetterSealImporter.kt:81-94 | app/src/main/java/com/mica/music/data/AppWallpaperImporter.kt:45-58 | app/src/main/java/com/mica/music/data/PlaylistCoverImporter.kt:56-68 — 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/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:359— app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:359-395 | app/src/main/java/com/mica/music/data/remote/smb/SmbNowPlayingMetadata.kt:85-132 | app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:303-344 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:328-377 — 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/mica/music/data/scanner/MediaStorePresenceInventory.kt:77— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:77-173 | app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:181-269 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:124-223 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:232-322 — 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/mica/music/media/ExternalMediaItemCodec.kt:32— app/src/main/java/com/mica/music/media/ExternalMediaItemCodec.kt:32-65 | app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:18-48 | app/src/main/java/com/mica/music/media/RemoteMediaItemProvider.kt:50-82 | app/src/main/java/com/mica/music/media/SongMediaItemCodec.kt:69-97 — 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:749— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:749-769 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:371-385 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:698-723 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2067-2082 — 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/mica/music/ui/screens/player/view/ParticleCoverView.kt:325— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:325-393 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:164-204 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:323-414 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:251-295 — 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/mica/music/ui/screens/player/view/ParticleCoverView.kt:398— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:398-417 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:206-225 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:419-438 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:297-316 — 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.
Duplicated block (11 lines × 2) app/src/main/java/com/mica/music/audio/eq/EqHeadroomPlanner.kt:132— app/src/main/java/com/mica/music/audio/eq/EqHeadroomPlanner.kt:132-142 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:577-587 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (11 lines × 2) app/src/main/java/com/mica/music/data/library/DeviceAutoProbePlanner.kt:241— app/src/main/java/com/mica/music/data/library/DeviceAutoProbePlanner.kt:241-251 | app/src/main/java/com/mica/music/data/library/DeviceAutoProbePlanner.kt:253-263 — 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/mica/music/data/library/DeviceAutoProbePlanner.kt:241` 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 (11 lines × 2) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:169— app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:169-179 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:408-418 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:169` 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/mica/music/ui/screens/home/HomeTopBar.kt:152— app/src/main/java/com/mica/music/ui/screens/home/HomeTopBar.kt:152-162 | app/src/main/java/com/mica/music/ui/screens/settings/SettingsScreen.kt:248-258 — 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/mica/music/ui/theme/AnimatedTheme.kt:427— app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.kt:427-437 | app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.kt:458-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:103— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:103-113 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:92-102 — 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/mica/music/ui/theme/DynamicArtworkBackground.kt:103` 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/mica/music/imaging/MicaImageLoaders.kt:51— app/src/main/java/com/mica/music/imaging/MicaImageLoaders.kt:51-61 | app/src/main/java/com/mica/music/imaging/MicaImageLoaders.kt:64-74 — 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/mica/music/imaging/MicaImageLoaders.kt:51` 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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:73— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:73-83 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:91-101 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:73` 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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:72` calls `arrayOf` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:90` 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 (5 lines × 2) app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:256— app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:256-260 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:303-307 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt` and `app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/mica/music/ui/components/LyricsDisplay.kt:612— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:612-616 | app/src/main/java/com/mica/music/ui/components/NarrowBarSoftKaraokeLyric.kt:248-252 — 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/mica/music/ui/components/LyricsDisplay.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. 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 (5 lines × 2) app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:829— app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:829-833 | app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:1284-1288 — 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/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:835— app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:835-839 | app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:1290-1294 — 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/mica/music/data/scanner/EncoderSettingsReader.kt:134— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:134-138 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:139-143 — 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/mica/music/data/scanner/EncoderSettingsReader.kt:134` 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/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:166— app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:166-170 | app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:250-254 — 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/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:166` 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/mica/music/data/library/LibraryOperationAuthority.kt:28— app/src/main/java/com/mica/music/data/library/LibraryOperationAuthority.kt:28-32 | app/src/main/java/com/mica/music/data/library/LibraryOperationAuthority.kt:49-53 — 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/mica/music/data/library/LibraryOperationAuthority.kt:28` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) app/src/main/java/com/mica/music/data/scanner/CoverColorExtractor.kt:91— app/src/main/java/com/mica/music/data/scanner/CoverColorExtractor.kt:91-95 | app/src/main/java/com/mica/music/data/scanner/VideoCoverPosterPrefetcher.kt:170-174 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14–15 lines × 2) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:669— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:669-682 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:774-788 — 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/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:669` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14–15 lines × 2) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:563— app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:563-576 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:653-667 — 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/mica/music/data/library/SafAutoSyncPipeline.kt:653` 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–15 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:31— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:31-44 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:25-39 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:31` 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–15 lines × 2) app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridSessionOwner.kt:167— app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridSessionOwner.kt:167-181 | app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridSessionOwner.kt:529-542 — 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/mica/music/media/usbhybrid/UsbHybridSessionOwner.kt:167` 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–15 lines × 2) app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:293— app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:293-306 | app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:355-369 — 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/mica/music/ui/components/PlaybackQueueSheet.kt:293` 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–15 lines × 2) app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:65— app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:65-78 | app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:358-372 — 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/mica/music/ui/components/SettingsRows.kt:358` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:64` calls `Column`, `weight`, `Text` and `app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:358` 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–15 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:191— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:191-204 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:281-295 — 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/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:191` 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.
D4 · Code Duplication· Edited copy of a member (21 corresponding lines) · ×6
Edited copy of a member (21 corresponding lines) app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:184— app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:184-211 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:213-233 — 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/mica/music/data/LibraryBrowse.kt:266— app/src/main/java/com/mica/music/data/LibraryBrowse.kt:266-286 | app/src/main/java/com/mica/music/data/LibraryBrowse.kt:292-317 — 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/mica/music/data/remote/navidrome/NavidromeArtworkRequestResolver.kt:15— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkRequestResolver.kt:15-35 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeStreamRequestResolver.kt:22-45 — 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/mica/music/data/scanner/MediaStorePresenceInventory.kt:303— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:303-327 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:376-396 — 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:716— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:716-736 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:349-369 — 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/mica/music/widget/MicaPlaybackWidget.kt:914— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:914-934 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:978-1003 — 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 (19 corresponding lines) · ×6
Edited copy of a member (19 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:659— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:659-690 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:308-326 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:787— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:787-805 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1420-1438 — 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/mica/music/data/scanner/Mp4LyricsReader.kt:110— app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:110-130 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.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/mica/music/data/PlaylistStore.kt:115— app/src/main/java/com/mica/music/data/PlaylistStore.kt:115-133 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:162-182 — 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/mica/music/data/scanner/Mp4AtomTextReader.kt:8— app/src/main/java/com/mica/music/data/scanner/Mp4AtomTextReader.kt:8-26 | app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:37-56 — 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/mica/music/ui/screens/VersionUpdateScreen.kt:166— app/src/main/java/com/mica/music/ui/screens/VersionUpdateScreen.kt:166-184 | app/src/main/java/com/mica/music/ui/screens/settings/SettingsUsbHybridPanel.kt:407-426 — 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 (12 corresponding lines) · ×6
Edited copy of a member (12 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/MusicVideoHost.kt:93— app/src/main/java/com/mica/music/ui/screens/player/view/MusicVideoHost.kt:93-106 | app/src/main/java/com/mica/music/ui/screens/player/view/VideoAlbumCoverHost.kt:179-190 — 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/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1101— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1101-1116 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1120-1131 — 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/mica/music/data/local/StorageDiagnostics.kt:318— app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:318-329 | app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:377-391 — 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/mica/music/imaging/MicaImageLoaders.kt:151— app/src/main/java/com/mica/music/imaging/MicaImageLoaders.kt:151-165 | app/src/main/java/com/mica/music/imaging/MicaImageLoaders.kt:171-182 — 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/debug/java/com/mica/music/media/usbprototype/UsbSk02AudioOutputProvider.kt:564— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02AudioOutputProvider.kt:564-577 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1133-1144 — 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/mica/music/data/LibraryStore.kt:236— app/src/main/java/com/mica/music/data/LibraryStore.kt:236-251 | app/src/main/java/com/mica/music/data/RoomLibraryStore.kt:253-264 — 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 (14 corresponding lines) · ×6
Edited copy of a member (14 corresponding lines) app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:233— app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:233-246 | app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:252-265 — 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/mica/music/audio/eq/SoftwareEqualizer.kt:285— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:285-301 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:366-379 — 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/mica/music/data/library/SafShadowCanonicalProjection.kt:34— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:34-47 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:118-131 — 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/mica/music/data/library/LibraryCatalogPublisher.kt:138— app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:138-155 | app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:157-170 — 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/mica/music/ui/theme/RainGlassBackground.kt:611— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:611-624 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2052-2065 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1061— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1061-1078 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:560-573 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×6
Edited copy of a member (9 corresponding lines) app/src/main/java/com/mica/music/data/remote/RemoteFileArtwork.kt:39— app/src/main/java/com/mica/music/data/remote/RemoteFileArtwork.kt:39-47 | app/src/main/java/com/mica/music/data/remote/RemoteFileArtwork.kt:60-70 — 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/mica/music/ui/components/SleepTimerSheet.kt:396— app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:396-404 | app/src/main/java/com/mica/music/ui/zoom/PinchZoom.kt:643-654 — 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/mica/music/data/remote/navidrome/NavidromeProtocol.kt:49— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeProtocol.kt:49-61 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeProtocol.kt:73-81 — 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/mica/music/media/MicaCompositePlayer.kt:144— app/src/main/java/com/mica/music/media/MicaCompositePlayer.kt:144-152 | app/src/main/java/com/mica/music/media/MicaCompositePlayer.kt:159-168 — 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/mica/music/data/AppFontImporter.kt:96— app/src/main/java/com/mica/music/data/AppFontImporter.kt:96-104 | app/src/main/java/com/mica/music/data/AppFontImporter.kt:106-114 — 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/mica/music/ui/components/EqualizerBandBar.kt:151— app/src/main/java/com/mica/music/ui/components/EqualizerBandBar.kt:151-159 | app/src/main/java/com/mica/music/ui/components/EqualizerCurveEditor.kt:283-291 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (15 lines × 2) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:259— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:259-273 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:515-529 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:273— app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:273-287 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:111-125 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:268— app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:268-282 | app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:330-344 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:268` 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/mica/music/ui/screens/LyricsCloudPanel.kt:232— app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:232-246 | app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:769-783 — 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/mica/music/ui/screens/LyricsCloudPanel.kt:232` 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/mica/music/ui/theme/BlurredCoverBackground.kt:98— app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:98-112 | app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:121-135 — 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/mica/music/ui/theme/BlurredCoverBackground.kt:98` 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/mica/music/widget/MicaPlaybackWidget.kt:659— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:659-673 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:695-709 — 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/mica/music/widget/MicaPlaybackWidget.kt:659` 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) · ×5
Edited copy of a member (18 corresponding lines) app/src/main/java/com/mica/music/data/remote/RemoteMediaMetadataExtras.kt:32— app/src/main/java/com/mica/music/data/remote/RemoteMediaMetadataExtras.kt:32-49 | app/src/main/java/com/mica/music/data/remote/RemoteMediaMetadataExtras.kt:51-71 — 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/mica/music/data/scanner/MediaStorePresenceInventory.kt:277— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:277-296 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.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.
Edited copy of a member (18 corresponding lines) app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:52— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:52-72 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:136-153 — 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/mica/music/audio/eq/SoftwareEqualizer.kt:263— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:263-283 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:347-364 — 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/mica/music/widget/MicaPlaybackWidget.kt:568— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:568-585 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:594-613 — 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 (10 corresponding lines) · ×5
Edited copy of a member (10 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:397— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:397-406 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:450-463 — 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/mica/music/data/scanner/DsdMetadataReader.kt:233— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:233-242 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:85-94 — 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/mica/music/ui/theme/RainGlassBackground.kt:746— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:746-758 | app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:788-797 — 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/mica/music/data/library/LibraryAutoSyncExecutor.kt:165— app/src/main/java/com/mica/music/data/library/LibraryAutoSyncExecutor.kt:165-174 | app/src/main/java/com/mica/music/data/library/LibraryOperationExecutor.kt:132-141 — 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/mica/music/data/library/DeviceAutoSyncPipeline.kt:42— app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:42-51 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:28-38 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (18 lines × 2) app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:287— app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:287-304 | app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:308-325 — 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/mica/music/ui/components/SettingsRows.kt:287` 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/mica/music/ui/components/SongActionMenuSheet.kt:230— app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:230-247 | app/src/main/java/com/mica/music/ui/screens/SongDetailScreen.kt:151-168 — 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/mica/music/ui/components/SongActionMenuSheet.kt:230` 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/mica/music/ui/screens/LetterLyricsPrototype.kt:271— app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:271-288 | app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:292-309 — 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/mica/music/ui/screens/LetterLyricsPrototype.kt:271` 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 (18 lines × 2) app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:108— app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:108-125 | app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:194-211 — 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 (18 lines × 2) app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:106— app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:106-123 | app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:142-159 — 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/mica/music/ui/theme/NowPlayingBackground.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.
Repeated repair: app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt:301— app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is LibraryAutoSyncStateEntitiesKt.toEntity at line 301), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(library): unify deletion proof and playlist followups”; “fix(library): persist SAF mass-deletion confirmed-missing proof”; “fix(library): bound SAF mass deletion confirmation”; “fix: make playlist cleanup follow-ups late-safe”. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/data/local/LibraryAutoSyncStateEntities.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: app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:362— app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is AlbumArtCache.pruneUnreferenced at line 362), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(imaging): recover managed artwork after load failures”; “fix(artwork): serialize cache maintenance with library state”; “Implement external lyrics controls and library consistency fixes”; “fix: harden playback lifecycle and library snapshots”. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.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: app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.kt app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.kt:326— app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.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 AnimatedThemeKt.MicaCustomWallpaperSlice at line 326), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ui): suppress K2 lint false positive in wallpaper image state”; “fix(wallpaper): prevent audiophile mini bar flicker on sheet collapse”; “fix(wallpaper): stack-blur viewport frame with safe regen and crop clip”. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/ui/theme/AnimatedTheme.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: app/src/main/java/com/mica/music/media/DesktopLyricsOverlayState.kt app/src/main/java/com/mica/music/media/DesktopLyricsOverlayState.kt:58— app/src/main/java/com/mica/music/media/DesktopLyricsOverlayState.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 7 (its worst body is DesktopLyricsOverlayStateKt.forExternalDisplay at line 58), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “Fix external lyric synchronization”; “Implement external lyrics controls and library consistency fixes”; “fix: harden playback lifecycle and library snapshots”. 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-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 13:23:54 +08:00' --until='2026-10-20 13:23:54 +08:00' --full-history --no-merges -- app/src/main/java/com/mica/music/media/DesktopLyricsOverlayState.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· Edited copy of a member (16 corresponding lines) · ×4
Edited copy of a member (16 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:277— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:277-292 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:299-314 — 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/mica/music/ui/components/SongListPanel.kt:534— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:534-549 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1663-1678 — 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/mica/music/data/library/DeviceShadowCanonicalProjector.kt:188— app/src/main/java/com/mica/music/data/library/DeviceShadowCanonicalProjector.kt:188-204 | app/src/main/java/com/mica/music/data/library/DeviceShadowCanonicalProjector.kt:211-226 — 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/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:194— app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:194-213 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavLyricsTransport.kt:54-69 — 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 (17 corresponding lines) · ×4
Edited copy of a member (17 corresponding lines) app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:80— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:80-96 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:60-76 — 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/mica/music/data/scanner/DeviceObjectRevisionReader.kt:66— app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:66-82 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:44-62 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:868— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:868-884 | app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:933-950 — 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/mica/music/data/library/DeviceShadowObjectProbeExecutor.kt:455— app/src/main/java/com/mica/music/data/library/DeviceShadowObjectProbeExecutor.kt:455-471 | app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:564-581 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×4
Edited copy of a member (15 corresponding lines) app/src/main/java/com/mica/music/data/scanner/ExternalLyricsReader.kt:144— app/src/main/java/com/mica/music/data/scanner/ExternalLyricsReader.kt:144-161 | app/src/main/java/com/mica/music/data/scanner/ExternalLyricsReader.kt:163-177 — 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/mica/music/data/remote/smb/SmbNowPlayingMetadata.kt:38— app/src/main/java/com/mica/music/data/remote/smb/SmbNowPlayingMetadata.kt:38-55 | app/src/main/java/com/mica/music/data/remote/smb/SmbNowPlayingMetadata.kt:62-76 — 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/mica/music/data/scanner/AudioMetadataProbe.kt:1186— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:1186-1200 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:1209-1223 — 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/mica/music/media/PlaybackArchitecture.kt:130— app/src/main/java/com/mica/music/media/PlaybackArchitecture.kt:130-144 | app/src/main/java/com/mica/music/media/PlaybackArchitecture.kt:146-160 — 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 (8 corresponding lines) · ×4
Edited copy of a member (8 corresponding lines) app/src/main/java/com/mica/music/data/scanner/CoverColorExtractor.kt:90— app/src/main/java/com/mica/music/data/scanner/CoverColorExtractor.kt:90-97 | app/src/main/java/com/mica/music/data/scanner/VideoCoverPosterPrefetcher.kt:169-180 — 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/mica/music/data/local/LibraryRepository.kt:57— app/src/main/java/com/mica/music/data/local/LibraryRepository.kt:57-66 | app/src/main/java/com/mica/music/ui/components/LyricsHydration.kt:120-127 — 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/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1646— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1646-1653 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1786-1793 — 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/mica/music/ui/theme/DynamicArtworkBackground.kt:126— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:126-133 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:875-883 — 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 (7 corresponding lines) · ×4
Edited copy of a member (7 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:585— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:585-591 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:696-702 — 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/mica/music/ui/theme/DynamicLightGlBackground.kt:157— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:157-163 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:165-171 — 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/mica/music/data/scanner/AlbumArtCache.kt:243— app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:243-250 | app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:252-258 — 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/mica/music/data/library/LibraryCatalogPublisher.kt:107— app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:107-113 | app/src/main/java/com/mica/music/data/library/LibraryCatalogPublisher.kt:116-125 — 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.
Duplicated block (19 lines × 2) app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:49— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:49-67 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:52-70 — before extracting anything, compare `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt` and `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:49` 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 `request` to `RemoteHttpArtworkRequest` in one and `NavidromeRequest): String = withContext(Dispatchers.IO` 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 (19 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:78— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:78-96 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:125-143 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:145` calls `sorted`, `chunked`, `idSelection` and `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:98` 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/mica/music/ui/components/BrowseGroupDisplaySheet.kt:41— app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:41-59 | app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt:44-62 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt` and `app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:41` 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/mica/music/ui/components/SongListPanel.kt:252— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:252-270 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1438-1456 — 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/mica/music/ui/components/SongListPanel.kt:252` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (17 lines × 2) app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:108— app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:108-124 | app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:187-203 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.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.
Duplicated block (17 lines × 2) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:549— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:549-565 | app/src/main/java/com/mica/music/ui/components/NarrowBarSoftKaraokeLyric.kt:152-168 — 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/mica/music/ui/components/LyricsDisplay.kt:549` 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 (17 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:816— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:816-832 | app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:871-887 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:816` 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/mica/music/ui/screens/HomeBrowseContent.kt:212— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:212-228 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:260-276 — 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/mica/music/ui/screens/HomeBrowseContent.kt:212` 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 × 3) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:339— app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:339-349 | app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:263-273 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:310-320 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 3) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:389— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:389-399 | app/src/main/java/com/mica/music/ui/components/NarrowBarSoftKaraokeLyric.kt:227-237 | app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:884-894 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:389` 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 × 3) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:795— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:795-805 | app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowReflectionBake.kt:183-193 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1428-1438 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:795` 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 × 3) app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:79— app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:79-89 | app/src/main/java/com/mica/music/data/AppWallpaperImporter.kt:60-70 | app/src/main/java/com/mica/music/data/PlaylistCoverImporter.kt:70-80 — 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· Edited copy of a member (25 corresponding lines) · ×3
Edited copy of a member (25 corresponding lines) app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:625— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:625-650 | app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackgroundView.kt:658-682 — 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/mica/music/data/remote/smb/SmbSourceSync.kt:65— app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:65-97 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:129-153 — 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/mica/music/data/local/RemoteTrackEntity.kt:51— app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:51-75 | app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:77-103 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×3
Edited copy of a member (20 corresponding lines) app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:303— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:303-322 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:324-345 — 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/mica/music/data/library/LibraryPublicationAuthority.kt:46— app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:46-73 | app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:323-342 — 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/mica/music/ui/screens/AboutScreen.kt:347— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:347-366 | app/src/main/java/com/mica/music/ui/screens/EqualizerScreen.kt:195-217 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×3
Edited copy of a member (26 corresponding lines) app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:99— app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt:99-124 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.kt:88-113 — 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/mica/music/data/scanner/AudioMetadataProbe.kt:122— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:122-149 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:151-176 — 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/mica/music/ui/components/SettingsRows.kt:56— app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:56-86 | app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:95-120 — 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 (13 corresponding lines) · ×3
Edited copy of a member (13 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:443— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:443-455 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:650-662 — 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/mica/music/data/scanner/AudioMetadataProbe.kt:846— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:846-858 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:860-872 — 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/mica/music/data/scanner/LyricsEncoding.kt:45— app/src/main/java/com/mica/music/data/scanner/LyricsEncoding.kt:45-57 | app/src/main/java/com/mica/music/data/scanner/LyricsEncoding.kt:61-73 — 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· Edited copy of a member (11 corresponding lines) · ×3
Edited copy of a member (11 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:457— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:457-467 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:636-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/mica/music/data/preferences/UsbSharedReturnCapabilityStore.kt:53— app/src/main/java/com/mica/music/data/preferences/UsbSharedReturnCapabilityStore.kt:53-63 | app/src/main/java/com/mica/music/media/usbhybrid/UsbStableIdentityDigest.kt:18-29 — 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/mica/music/data/scanner/DsdMetadataReader.kt:372— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:372-382 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:586-596 — 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 copies of one member (3 members, 10+ corresponding lines) · ×3
Edited copies of one member (3 members, 10+ corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:771— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:771-786 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:387-396 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2084-2093 — 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.
Edited copies of one member (3 members, 10+ corresponding lines) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:874— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:874-883 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:129-139 | app/src/main/java/com/mica/music/data/scanner/ExternalLyricsReader.kt:233-242 — 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.
Edited copies of one member (3 members, 10+ corresponding lines) app/src/main/java/com/mica/music/ExternalAudioOpen.kt:89— app/src/main/java/com/mica/music/ExternalAudioOpen.kt:89-98 | app/src/main/java/com/mica/music/data/SongIdentity.kt:19-29 | app/src/main/java/com/mica/music/media/SongMediaItemCodec.kt:155-164 — 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.
Duplicated block (25 lines × 2) app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:221— app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:221-245 | app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:267-291 — 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/mica/music/data/library/SafShadowRelationRematcher.kt:221` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:130— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:130-154 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:179-203 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:130` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1621— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1621-1645 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1741-1765 — 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/mica/music/ui/screens/NowPlayingScreen.kt:1621` 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/mica/music/data/local/SongEntity.kt:190— app/src/main/java/com/mica/music/data/local/SongEntity.kt:190-212 | app/src/main/java/com/mica/music/data/local/SongEntity.kt:241-263 — 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 (23 lines × 2) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:418— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:418-440 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:491-513 — 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/mica/music/data/scanner/EncoderSettingsReader.kt:418` 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:239— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:239-261 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:355-377 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:239` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21 lines × 2) app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:239— app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:239-259 | app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:309-329 — 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/mica/music/media/ServicePlaybackEngineCoordinator.kt:239` 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/mica/music/ui/components/SongListPanel.kt:495— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:495-515 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1625-1645 — 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/mica/music/ui/components/SongListPanel.kt:495` 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/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:768— app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:768-788 | app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:795-815 — 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/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:768` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:126— app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:126-138 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:195-207 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavLyricsTransport.kt:55-67 — 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.
Duplicated block (13 lines × 3) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:362— app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:362-374 | app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:420-432 | app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:442-454 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:748— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:748-760 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:972-984 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1053-1065 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:748` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 3) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:110— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:110-117 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:269-276 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:161-168 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) app/src/main/java/com/mica/music/data/library/DeviceShadowRetryPlanner.kt:148— app/src/main/java/com/mica/music/data/library/DeviceShadowRetryPlanner.kt:148-155 | app/src/main/java/com/mica/music/data/library/SafMassDeletionConfirmationPlanner.kt:289-296 | app/src/main/java/com/mica/music/data/library/SafShadowRetryPlanner.kt:109-116 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. 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 × 3) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:962— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:962-969 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1043-1050 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1162-1169 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 2) app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:60— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:60-67 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:142-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 `app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.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.
Duplicated block (7–8 lines × 2) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:753— app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:753-759 | app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:1143-1150 — 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/mica/music/data/scanner/AudioMetadataProbe.kt:753` 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–8 lines × 2) app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:296— app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:296-302 | app/src/main/java/com/mica/music/media/ServicePlaybackEngineCoordinator.kt:367-374 — 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/mica/music/media/ServicePlaybackEngineCoordinator.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.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (7 members, 50+ identical tokens) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:263— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:263-281 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:721-814 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:946-1025 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1027-1108 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1146-1206 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1208-1279 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1281-1311 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Members sharing a duplicated core (7 members, 50+ identical tokens) app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:60— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:60-228 | app/src/main/java/com/mica/music/ui/screens/EqualizerScreen.kt:169-192 | app/src/main/java/com/mica/music/ui/screens/MetadataDebugScreen.kt:169-200 | app/src/main/java/com/mica/music/ui/screens/SongDetailScreen.kt:61-227 | app/src/main/java/com/mica/music/ui/screens/SoundFxScreen.kt:243-266 | app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.kt:38-96 | app/src/main/java/com/mica/music/ui/screens/VersionUpdateScreen.kt:47-160 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (6 members, 50+ identical tokens) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:721— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:721-814 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:853-944 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:946-1025 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1027-1108 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1146-1206 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1208-1279 — 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.
Members sharing a duplicated core (6 members, 50+ identical tokens) app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:272— app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:272-345 | app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:351-433 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:110-174 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:176-231 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:98-222 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:227-326 — 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 (36 corresponding lines) · ×2
Edited copy of a member (36 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:409— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:409-447 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:485-520 — 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/mica/music/widget/MicaPlaybackWidget.kt:765— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:765-800 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:808-848 — 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 (34 corresponding lines) · ×2
Edited copy of a member (34 corresponding lines) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1223— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1223-1256 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1274-1313 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1153— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:1153-1190 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1275-1308 — 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 (28 corresponding lines) · ×2
Edited copy of a member (28 corresponding lines) app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:658— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:658-685 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:694-723 — 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/mica/music/widget/MicaPlaybackWidget.kt:483— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:483-523 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:944-971 — 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 (30 corresponding lines) · ×2
Edited copy of a member (30 corresponding lines) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:98— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:98-127 | app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:135-164 — 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/mica/music/ui/screens/LibraryAnalysisScreen.kt:204— app/src/main/java/com/mica/music/ui/screens/LibraryAnalysisScreen.kt:204-243 | app/src/main/java/com/mica/music/ui/screens/LibraryAnalysisScreen.kt:251-280 — 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 (22 corresponding lines) · ×2
Edited copy of a member (22 corresponding lines) app/src/main/java/com/mica/music/audio/eq/EqHeadroomPlanner.kt:129— app/src/main/java/com/mica/music/audio/eq/EqHeadroomPlanner.kt:129-150 | app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizer.kt:565-593 — 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/mica/music/ui/theme/RainGlassBackground.kt:62— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:62-83 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:54-77 — 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 copies of one member (3 members, 19+ corresponding lines) · ×2
Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:469— app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:469-495 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:174-192 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:165-183 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:294— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:294-316 | app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:322-340 | app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.kt:102-120 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×2
Edited copy of a member (23 corresponding lines) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:22— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:22-44 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:17-40 — 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/mica/music/widget/MicaPlaybackWidget.kt:280— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:280-303 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:1038-1060 — 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 copies of one member (3 members, 8+ corresponding lines) · ×2
Edited copies of one member (3 members, 8+ corresponding lines) app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:201— app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:201-208 | app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:214-221 | app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt:226-233 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 8+ corresponding lines) app/src/main/java/com/mica/music/data/preferences/AudioOffloadPreferences.kt:76— app/src/main/java/com/mica/music/data/preferences/AudioOffloadPreferences.kt:76-85 | app/src/main/java/com/mica/music/data/preferences/PlaybackUiPreferences.kt:233-240 | app/src/main/java/com/mica/music/data/preferences/UsbHybridPreferences.kt:76-83 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
Duplicated block (33–36 lines × 2) app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:465— app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:465-497 | app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:523-558 — 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/mica/music/data/library/SafShadowObjectProbeExecutor.kt:465` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (33–36 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:265— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:265-300 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:378-410 — 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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:265` 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/mica/music/data/local/RemoteTrackEntity.kt:53— app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:53-74 | app/src/main/java/com/mica/music/data/local/RemoteTrackEntity.kt:80-101 — 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 (22 lines × 2) app/src/main/java/com/mica/music/ui/components/MiniPlayerSpectrumBars.kt:128— app/src/main/java/com/mica/music/ui/components/MiniPlayerSpectrumBars.kt:128-149 | app/src/main/java/com/mica/music/ui/components/MiniPlayerSpectrumBars.kt:159-180 — 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/mica/music/ui/components/MiniPlayerSpectrumBars.kt:128` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 3) app/src/main/java/com/mica/music/data/local/SongEntity.kt:187— app/src/main/java/com/mica/music/data/local/SongEntity.kt:187-203 | app/src/main/java/com/mica/music/data/local/SongEntity.kt:238-254 | app/src/main/java/com/mica/music/data/local/SongEntity.kt:312-328 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:246— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:246-262 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:98-114 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:37-53 — 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.
Duplicated block (16 lines × 3) app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:38— app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:38-53 | app/src/main/java/com/mica/music/ui/components/FolderBrowseModeSheet.kt:28-43 | app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt:41-56 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt` and `app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt` as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:54` calls `verticalScroll`, `rememberScrollState` and `app/src/main/java/com/mica/music/ui/components/FolderBrowseModeSheet.kt:44` 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 × 3) app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:61— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:61-76 | app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.kt:41-56 | app/src/main/java/com/mica/music/ui/screens/VersionUpdateScreen.kt:65-80 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt` and `app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:61` 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/mica/music/ui/screens/SpatialAudioScreen.kt:39` calls `collectAsStateWithLifecycle` and `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:60` 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–14 lines × 2) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1960— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1960-1972 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1984-1997 — 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/mica/music/ui/screens/HomeBrowseContent.kt:1960` 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–14 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:750— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:750-762 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:699-712 — 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/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:750` 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–12 lines × 2) app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:205— app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:205-215 | app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:270-281 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/SettingsRows.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:268` calls `mutableStateOf`, `toString` and `app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:204` 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 (11–12 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:372— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:372-382 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2068-2079 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10–11 lines × 2) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:168— app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:168-177 | app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:259-269 — 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/mica/music/data/remote/smb/SmbFolderLibraryIndexer.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. 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/mica/music/ui/components/PlayerPlaybackChrome.kt:239— app/src/main/java/com/mica/music/ui/components/PlayerPlaybackChrome.kt:239-248 | app/src/main/java/com/mica/music/ui/components/PlayerPlaybackChrome.kt:296-306 — 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/mica/music/ui/components/PlayerPlaybackChrome.kt:239` 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 (9–10 lines × 2) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:207— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:207-215 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:193-202 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:207` 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.
Duplicated block (9–10 lines × 2) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:2003— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:2003-2011 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:2022-2031 — 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/mica/music/ui/screens/HomeBrowseContent.kt:2003` 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 × 4) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:137— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:137-145 | app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:238-246 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:186-194 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:291-299 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:134` calls `getIntOrZero`, `getStringOrEmpty`, `getLongOrZero` and `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:237` 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 lines × 4) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:341— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:341-349 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:174-182 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:346-354 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:262-270 — 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/mica/music/ui/screens/player/view/ParticleCoverView.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:351` calls `important` and `app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:272` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:117— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:117-123 | app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:221-227 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:168-174 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:275-281 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:117` 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 × 4) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:870— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:870-876 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:962-968 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1043-1049 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1162-1168 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. 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/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:877` calls `isCurrent` and `app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:969` 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 × 3) app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizerAudioProcessor.kt:79— app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizerAudioProcessor.kt:79-85 | app/src/main/java/com/mica/music/media/MicaFloatDspAudioSink.kt:266-272 | app/src/main/java/com/mica/music/media/SpectrumAudioProcessor.kt:94-100 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (7 lines × 3) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:975— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:975-981 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:399-405 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2096-2102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:971` calls `between`, `nextFloat` and `app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:396` 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 × 4) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:222— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:222-229 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:113-120 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:237-244 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:180-187 — 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.
Duplicated block (8 lines × 4) app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:122— app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:122-129 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:186-193 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:117-124 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:238-245 — there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:122` 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/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:247` calls `getColumnIndexOrThrow` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:131` 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 (5 lines × 3) app/src/main/java/com/mica/music/data/preferences/LibraryBrowseSettings.kt:143— app/src/main/java/com/mica/music/data/preferences/LibraryBrowseSettings.kt:143-147 | app/src/main/java/com/mica/music/data/preferences/LibraryBrowseSettings.kt:169-173 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:686-690 — 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.
Duplicated block (5 lines × 3) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:306— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:306-310 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:594-598 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:705-709 — 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. 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.
X2 · Cancellation propagation· Suspend function with a blocking request · ×2
Suspend function with a blocking request: fetchManifestFromNetwork app/src/main/java/com/mica/music/data/update/AppUpdate.kt:130— `fetchManifestFromNetwork` 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: execute app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:18— `execute` 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`.
NowPlayingScreenKt.NowPlayingContent (cyclomatic 213) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:229— NowPlayingScreenKt.NowPlayingContent has cyclomatic complexity 213 (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.
HomeScreenKt.HomeScreen (cyclomatic 121) app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:106— HomeScreenKt.HomeScreen has cyclomatic complexity 121 (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.
NowPlayingLyricsExpandedKt.ExpandedLyricsPanel (cyclomatic 83) app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:88— NowPlayingLyricsExpandedKt.ExpandedLyricsPanel has cyclomatic complexity 83 (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.
SmbBrowserPaneKt.SmbBrowserContent (cyclomatic 81) app/src/main/java/com/mica/music/ui/screens/home/SmbBrowserPane.kt:68— SmbBrowserPaneKt.SmbBrowserContent has cyclomatic complexity 81 (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.
SafAutoSyncPipeline.executeObservedSnapshot (cyclomatic 62) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:201— SafAutoSyncPipeline.executeObservedSnapshot has cyclomatic complexity 62 (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.
PlaybackRuntime.createPlayerListener (cyclomatic 44) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:598— PlaybackRuntime.createPlayerListener has cyclomatic complexity 44 (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.
LibraryScanEngine.performScanLocked (cyclomatic 43) app/src/main/java/com/mica/music/data/library/LibraryScanEngine.kt:54— LibraryScanEngine.performScanLocked has cyclomatic complexity 43 (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.
NowPlayingCoverSectionKt.NowPlayingCoverSection (cyclomatic 43) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:107— NowPlayingCoverSectionKt.NowPlayingCoverSection has cyclomatic complexity 43 (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.
LibraryAutoSyncQaProfileService.onStartCommand (cyclomatic 42) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:90— LibraryAutoSyncQaProfileService.onStartCommand has cyclomatic complexity 42 (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.
DeviceAutoSyncPipeline.executeInternal (cyclomatic 41) app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:53— DeviceAutoSyncPipeline.executeInternal has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SettingsScreenKt.SettingsScreen (cyclomatic 38) app/src/main/java/com/mica/music/ui/screens/settings/SettingsScreen.kt:68— SettingsScreenKt.SettingsScreen 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.
HybridQaPlaybackReceiver.onReceive (cyclomatic 35) app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:37— HybridQaPlaybackReceiver.onReceive has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SongCoverKt.SongCover (cyclomatic 35) app/src/main/java/com/mica/music/ui/components/SongCover.kt:53— SongCoverKt.SongCover has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HomeLibraryStatsKt.resolveLibraryStatsBarModel (cyclomatic 32) app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.kt:109— HomeLibraryStatsKt.resolveLibraryStatsBarModel 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.
SongChangeDiagnostics.changedFields (cyclomatic 31) app/src/main/java/com/mica/music/data/SongChangeDiagnostics.kt:4— SongChangeDiagnostics.changedFields 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.
PlaybackQueueSheetKt.PlaybackQueueSheet (cyclomatic 31) app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:74— PlaybackQueueSheetKt.PlaybackQueueSheet 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.
PlayerPageLayoutEngine.computeFrame (cyclomatic 31) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:32— PlayerPageLayoutEngine.computeFrame has cyclomatic complexity 31 (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.
NotificationLyricsCoordinatorKt.buildExternalLyricsLine (cyclomatic 30) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:722— NotificationLyricsCoordinatorKt.buildExternalLyricsLine 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.
CustomPlayerLowerPanelKt.CustomPlayerPagePanel (cyclomatic 30) app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:95— CustomPlayerLowerPanelKt.CustomPlayerPagePanel has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
LyricsCloudPanelKt.LyricsCloudPanel (cyclomatic 30) app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:77— LyricsCloudPanelKt.LyricsCloudPanel has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel (cyclomatic 30) app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:46— RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel 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.
LibraryAutoSyncQaReceiver.onReceive (cyclomatic 28) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:43— LibraryAutoSyncQaReceiver.onReceive 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.
PlayerPageLayoutEngine.computeCoverFrame (cyclomatic 28) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:274— PlayerPageLayoutEngine.computeCoverFrame 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.
NotificationLyricsCoordinator.reconcile (cyclomatic 26) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:236— NotificationLyricsCoordinator.reconcile 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.
LetterLyricsPrototypeKt.LetterLyricsPrototype (cyclomatic 26) app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:92— LetterLyricsPrototypeKt.LetterLyricsPrototype 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.
LibraryAutoSyncQaReceiver.runDeviceAuthorityGate (cyclomatic 25) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:357— LibraryAutoSyncQaReceiver.runDeviceAuthorityGate has cyclomatic complexity 25 (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.
FolderScanner.loadDrafts (cyclomatic 25) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:752— FolderScanner.loadDrafts 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.
LyricsSanitizer.isBinaryGarbage (cyclomatic 25) app/src/main/java/com/mica/music/data/scanner/LyricsSanitizer.kt:110— LyricsSanitizer.isBinaryGarbage has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
LandscapePlayerPolicyKt.playerViewportPlan (cyclomatic 25) app/src/main/java/com/mica/music/ui/screens/player/LandscapePlayerPolicy.kt:52— LandscapePlayerPolicyKt.playerViewportPlan has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — 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.
DeviceShadowObjectProbeExecutor.execute (cyclomatic 24) app/src/main/java/com/mica/music/data/library/DeviceShadowObjectProbeExecutor.kt:142— DeviceShadowObjectProbeExecutor.execute 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.
ScanProfilerKt.reusableCachedSong (cyclomatic 24) app/src/main/java/com/mica/music/data/scanner/ScanProfiler.kt:141— ScanProfilerKt.reusableCachedSong 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.
UsbSk02DescriptorPrototypeReceiver.beginGenerationPcm16Probe (cyclomatic 23) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:848— UsbSk02DescriptorPrototypeReceiver.beginGenerationPcm16Probe has cyclomatic complexity 23 (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. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
DescriptorProbe.parse (cyclomatic 23) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1571— DescriptorProbe.parse 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. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
NowPlayingCoverRenderersKt.StandardCoverRenderer (cyclomatic 23) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverRenderers.kt:244— NowPlayingCoverRenderersKt.StandardCoverRenderer 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.
FolderScanner.observeTargetedMetadata (cyclomatic 22) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:361— FolderScanner.observeTargetedMetadata 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.
MediaStoreScanner.loadDrafts (cyclomatic 22) app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:209— MediaStoreScanner.loadDrafts 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.
LyricsDisplayKt.LyricLineBlock (cyclomatic 22) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:239— LyricsDisplayKt.LyricLineBlock 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.
PlayerScreenAppearanceKt.rememberPlayerScreenAppearance (cyclomatic 22) app/src/main/java/com/mica/music/ui/theme/PlayerScreenAppearance.kt:19— PlayerScreenAppearanceKt.rememberPlayerScreenAppearance 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.
UsbSk02DescriptorPrototypeReceiver.decodeMediaProbe (cyclomatic 21) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:498— UsbSk02DescriptorPrototypeReceiver.decodeMediaProbe 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. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
DeviceShadowMembershipAuditor.audit (cyclomatic 21) app/src/main/java/com/mica/music/data/library/DeviceShadowMembershipAuditor.kt:47— DeviceShadowMembershipAuditor.audit has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — 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.
CoverFlowCarouselView.updateCurrentIndex (cyclomatic 21) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:344— CoverFlowCarouselView.updateCurrentIndex 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.
StarMapSceneProjector.project (cyclomatic 21) app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:937— StarMapSceneProjector.project 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.
LibraryCacheLoader.loadCachedLibrary (cyclomatic 20) app/src/main/java/com/mica/music/data/library/LibraryCacheLoader.kt:35— LibraryCacheLoader.loadCachedLibrary 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.
SmbFolderLibraryIndexer.discover (cyclomatic 20) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:160— SmbFolderLibraryIndexer.discover 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.
BrowseGroupDisplaySheetKt.BrowseGroupDisplaySheet (cyclomatic 20) app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:26— BrowseGroupDisplaySheetKt.BrowseGroupDisplaySheet 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.
PlayerLowerPanelKt.PlayerLowerPanelSection (cyclomatic 20) app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:44— PlayerLowerPanelKt.PlayerLowerPanelSection 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.
UsbSk02DescriptorPrototypeReceiver.beginPcmUsbProbe (cyclomatic 19) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:713— UsbSk02DescriptorPrototypeReceiver.beginPcmUsbProbe 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. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
EmbeddedLyricsReader.parseId3TagAt (cyclomatic 19) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:239— EmbeddedLyricsReader.parseId3TagAt 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.
EncoderSettingsReader.parseId3TagAt (cyclomatic 19) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:96— EncoderSettingsReader.parseId3TagAt 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.
LyricsEncoding.looksLikeMojibake (cyclomatic 19) app/src/main/java/com/mica/music/data/scanner/LyricsEncoding.kt:403— LyricsEncoding.looksLikeMojibake 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.
LyricsEncoding.scoreDecoded (cyclomatic 19) app/src/main/java/com/mica/music/data/scanner/LyricsEncoding.kt:490— LyricsEncoding.scoreDecoded has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
SpectrumAnalysisEngine.tick (cyclomatic 19) app/src/main/java/com/mica/music/media/SpectrumAnalysisEngine.kt:110— SpectrumAnalysisEngine.tick 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.
MediaControllerQueueSync.planSync (cyclomatic 19) app/src/main/java/com/mica/music/playback/MediaControllerQueueSync.kt:124— MediaControllerQueueSync.planSync 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.
PlaybackErrorMapper.remotePresentation (cyclomatic 19) app/src/main/java/com/mica/music/playback/PlaybackErrorMapper.kt:76— PlaybackErrorMapper.remotePresentation 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. This is NOT this file's highest cyclomatic complexity: PlaybackErrorMapper.toPresentation (cyclomatic 20) 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.
SongActionMenuSheetKt.AddToPlaylistSheet (cyclomatic 19) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:458— SongActionMenuSheetKt.AddToPlaylistSheet 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.
ParticleCoverRenderer.render (cyclomatic 19) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:147— ParticleCoverRenderer.render 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.
BlurredCoverBackgroundKt.BlurredCoverBackground (cyclomatic 19) app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:52— BlurredCoverBackgroundKt.BlurredCoverBackground 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.
UsbKernelDriverReconnectOwner.reconnectLocked (cyclomatic 18) app/src/debug/java/com/mica/music/media/usbprototype/UsbKernelDriverReconnectOwner.kt:31— UsbKernelDriverReconnectOwner.reconnectLocked 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.
UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe (cyclomatic 18) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:946— UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe (cyclomatic 18) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1027— UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
SafUnknownFingerprintDebtPlanner.plan (cyclomatic 18) app/src/main/java/com/mica/music/data/library/SafUnknownFingerprintDebtPlanner.kt:38— SafUnknownFingerprintDebtPlanner.plan 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.
SmbDirectoryBrowser.list (cyclomatic 18) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:84— SmbDirectoryBrowser.list 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.
WebDavSourceSync.scan (cyclomatic 18) app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:200— WebDavSourceSync.scan 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.
WebDavSeekableByteSource.readAt (cyclomatic 18) app/src/main/java/com/mica/music/data/remote/webdav/WebDavSeekableByteSource.kt:22— WebDavSeekableByteSource.readAt 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.
DefaultUsbOutputCoordinator.executeEffect (cyclomatic 18) app/src/main/java/com/mica/music/media/UsbOutputCoordinator.kt:480— DefaultUsbOutputCoordinator.executeEffect 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.
PlaybackStatusKt.resolvePlaybackStatus (cyclomatic 18) app/src/main/java/com/mica/music/playback/PlaybackStatus.kt:36— PlaybackStatusKt.resolvePlaybackStatus 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.
PlayerSheetHostKt.PlayerSheetHost (cyclomatic 18) app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt:72— PlayerSheetHostKt.PlayerSheetHost 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.
SongRowKt.SongRow (cyclomatic 18) app/src/main/java/com/mica/music/ui/components/SongRow.kt:58— SongRowKt.SongRow 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.
LetterLyricsPrototypeKt.buildLetterPages (cyclomatic 18) app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:1002— LetterLyricsPrototypeKt.buildLetterPages 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.
HomeTopBarKt.resolveTopBarTitle (cyclomatic 18) app/src/main/java/com/mica/music/ui/screens/home/HomeTopBar.kt:45— HomeTopBarKt.resolveTopBarTitle 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.
SettingsLyricsPanelKt.LyricsSettingsPanel (cyclomatic 18) app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt:47— SettingsLyricsPanelKt.LyricsSettingsPanel 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.
UsageTutorialScenesKt.TutorialSortScene (cyclomatic 18) app/src/main/java/com/mica/music/ui/screens/tutorial/UsageTutorialScenes.kt:81— UsageTutorialScenesKt.TutorialSortScene 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.
MicaPlaybackWidget.provideGlance (cyclomatic 18) app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:65— MicaPlaybackWidget.provideGlance 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.
LibraryQueueSyncPolicy.plan (cyclomatic 17) app/src/main/java/com/mica/music/LibraryQueueSyncPolicy.kt:40— LibraryQueueSyncPolicy.plan has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
SafAutoSyncPipeline.executeInternal (cyclomatic 17) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:40— SafAutoSyncPipeline.executeInternal 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.
SmbBrowserKt.naturalFileCompare (cyclomatic 17) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:204— SmbBrowserKt.naturalFileCompare has cyclomatic complexity 17 (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.
AudioMetadataProbe.probeTrack (cyclomatic 17) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:304— AudioMetadataProbe.probeTrack 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.
DeviceShadowCanonicalCatalog.changedAspects (cyclomatic 17) app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:155— DeviceShadowCanonicalCatalog.changedAspects 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.
DsdMetadataReader.readId3PictureAt (cyclomatic 17) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:244— DsdMetadataReader.readId3PictureAt 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.
MicaMediaService.attachPlaybackStackOwners (cyclomatic 17) app/src/main/java/com/mica/music/media/MicaMediaService.kt:537— MicaMediaService.attachPlaybackStackOwners 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.
CustomPlayerLowerPanelKt.CustomPlayerEditChrome (cyclomatic 17) app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:515— CustomPlayerLowerPanelKt.CustomPlayerEditChrome 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.
HomeSortSheetsKt.HomeSortSheets (cyclomatic 17) app/src/main/java/com/mica/music/ui/screens/home/HomeSortSheets.kt:32— HomeSortSheetsKt.HomeSortSheets 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.
PhotoStackTransitionView.drawProgressStrip (cyclomatic 17) app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:978— PhotoStackTransitionView.drawProgressStrip 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.
RemoteMusicSettingsPanelKt.RemoteSourceDialog (cyclomatic 17) app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:308— RemoteMusicSettingsPanelKt.RemoteSourceDialog 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.
LibraryAutoSyncQaPickerClickService.tryClickIsolatedPicker (cyclomatic 16) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaPickerClickService.kt:45— LibraryAutoSyncQaPickerClickService.tryClickIsolatedPicker 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.
UsbSk02DescriptorPrototypeReceiver.beginIsoFeedbackProbe (cyclomatic 16) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1146— UsbSk02DescriptorPrototypeReceiver.beginIsoFeedbackProbe 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. This is NOT this file's highest cyclomatic complexity: UsbSk02DescriptorPrototypeReceiver.onReceive (cyclomatic 30) 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.
SafRetryPlanningLoader.load (cyclomatic 16) app/src/main/java/com/mica/music/data/library/SafRetryPlanningLoader.kt:20— SafRetryPlanningLoader.load has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
SafShadowCanonicalCatalog.changedAspects (cyclomatic 16) app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:74— SafShadowCanonicalCatalog.changedAspects 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.
LrcParser.parseEntries (cyclomatic 16) app/src/main/java/com/mica/music/data/scanner/LrcParser.kt:130— LrcParser.parseEntries 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.
MediaStoreScanner.loadExtendedAudioFileDrafts (cyclomatic 16) app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:371— MediaStoreScanner.loadExtendedAudioFileDrafts 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.
ScanProfilerKt.requiresAudioTrackProbe (cyclomatic 16) app/src/main/java/com/mica/music/data/scanner/ScanProfiler.kt:240— ScanProfilerKt.requiresAudioTrackProbe has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
NotificationLyricsCoordinator.start (cyclomatic 16) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:158— NotificationLyricsCoordinator.start has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
NotificationLyricsCoordinator.ensureLyrics (cyclomatic 16) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:412— NotificationLyricsCoordinator.ensureLyrics 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.
PlaybackRuntime.bootstrapQueueFromPersistedSnapshot (cyclomatic 16) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:1077— PlaybackRuntime.bootstrapQueueFromPersistedSnapshot 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.
PlaybackRuntime.setQueue (cyclomatic 16) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:1191— PlaybackRuntime.setQueue 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.
EqualizerCurveEditorKt.EqualizerCurveEditor (cyclomatic 16) app/src/main/java/com/mica/music/ui/components/EqualizerCurveEditor.kt:57— EqualizerCurveEditorKt.EqualizerCurveEditor 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.
SongActionMenuSheetKt.LandscapeSongActionMenu (cyclomatic 16) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:312— SongActionMenuSheetKt.LandscapeSongActionMenu 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.
DesktopLyricsOverlayServiceKt.DesktopLyricsOverlayContent (cyclomatic 16) app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:449— DesktopLyricsOverlayServiceKt.DesktopLyricsOverlayContent 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.
DesktopLyricsOverlayServiceKt.ExternalLyricsLineText (cyclomatic 16) app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:628— DesktopLyricsOverlayServiceKt.ExternalLyricsLineText 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.
HomeBrowseContentKt.HomeBrowseContent (cyclomatic 16) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:121— HomeBrowseContentKt.HomeBrowseContent 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.
PlayerPageStateKt.rememberPlayerPageUiModel (cyclomatic 16) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageState.kt:87— PlayerPageStateKt.rememberPlayerPageUiModel 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.
PinchZoomMath.settleTarget (cyclomatic 16) app/src/main/java/com/mica/music/ui/zoom/PinchZoom.kt:309— PinchZoomMath.settleTarget 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.
NowPlayingScreenKt.NowPlayingContent (cognitive 330) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:229— NowPlayingScreenKt.NowPlayingContent has cognitive complexity 330 (threshold 15). Drivers by points: if/else 171 (234 pts), boolean chains 87, match/switch 7 (9 pts) (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HomeScreenKt.HomeScreen (cognitive 143) app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:106— HomeScreenKt.HomeScreen has cognitive complexity 143 (threshold 15). Drivers by points: if/else 91 (101 pts), boolean chains 34, match/switch 7 (8 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowPlayingLyricsExpandedKt.ExpandedLyricsPanel (cognitive 126) app/src/main/java/com/mica/music/ui/screens/NowPlayingLyricsExpanded.kt:88— NowPlayingLyricsExpandedKt.ExpandedLyricsPanel has cognitive complexity 126 (threshold 15). Drivers by points: if/else 71 (95 pts), boolean chains 22, loops 4 (8 pts), match/switch 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.
SmbBrowserPaneKt.SmbBrowserContent (cognitive 119) app/src/main/java/com/mica/music/ui/screens/home/SmbBrowserPane.kt:68— SmbBrowserPaneKt.SmbBrowserContent has cognitive complexity 119 (threshold 15). Drivers by points: if/else 58 (86 pts), boolean chains 23, error handling 6 (8 pts), match/switch 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SafAutoSyncPipeline.executeObservedSnapshot (cognitive 91) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:201— SafAutoSyncPipeline.executeObservedSnapshot has cognitive complexity 91 (threshold 15). Drivers by points: if/else 50 (72 pts), boolean chains 15, error handling 1 (2 pts), match/switch 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NowPlayingCoverSectionKt.NowPlayingCoverSection (cognitive 67) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt:107— NowPlayingCoverSectionKt.NowPlayingCoverSection has cognitive complexity 67 (threshold 15). Drivers by points: if/else 42 (51 pts), boolean chains 15, loops 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.
LetterLyricsPrototypeKt.LetterLyricsPrototype (cognitive 56) app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:92— LetterLyricsPrototypeKt.LetterLyricsPrototype has cognitive complexity 56 (threshold 15). Drivers by points: if/else 39 (52 pts), boolean chains 3, 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.
LibraryScanEngine.performScanLocked (cognitive 54) app/src/main/java/com/mica/music/data/library/LibraryScanEngine.kt:54— LibraryScanEngine.performScanLocked has cognitive complexity 54 (threshold 15). Drivers by points: if/else 34 (40 pts), boolean chains 12, error handling 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
PlaybackQueueSheetKt.PlaybackQueueSheet (cognitive 54) app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:74— PlaybackQueueSheetKt.PlaybackQueueSheet has cognitive complexity 54 (threshold 15). Drivers by points: if/else 36 (47 pts), boolean chains 6, match/switch 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
HomeLibraryStatsKt.resolveLibraryStatsBarModel (cognitive 54) app/src/main/java/com/mica/music/ui/screens/home/HomeLibraryStats.kt:109— HomeLibraryStatsKt.resolveLibraryStatsBarModel has cognitive complexity 54 (threshold 15). Drivers by points: if/else 25 (41 pts), match/switch 5 (9 pts), boolean chains 4 (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.
DeviceAutoSyncPipeline.executeInternal (cognitive 50) app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPipeline.kt:53— DeviceAutoSyncPipeline.executeInternal has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (36 pts), boolean chains 9, match/switch 3 (5 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.
PlaybackRuntime.createPlayerListener (cognitive 50) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:598— PlaybackRuntime.createPlayerListener has cognitive complexity 50 (threshold 15). Drivers by points: if/else 34 (39 pts), boolean chains 11 (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.
LibraryAutoSyncQaReceiver.onReceive (cognitive 48) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:43— LibraryAutoSyncQaReceiver.onReceive has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (26 pts), error handling 9 (19 pts), loops 1 (2 pts), boolean chains 1 (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.
HybridQaPlaybackReceiver.onReceive (cognitive 44) app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt:37— HybridQaPlaybackReceiver.onReceive has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (32 pts), boolean chains 6, error handling 2 (3 pts), match/switch 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.
SongCoverKt.SongCover (cognitive 44) app/src/main/java/com/mica/music/ui/components/SongCover.kt:53— SongCoverKt.SongCover has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (29 pts), match/switch 6 (8 pts), boolean chains 7 (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.
MediaStoreScanner.loadDrafts (cognitive 42) app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:209— MediaStoreScanner.loadDrafts has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26 (34 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
LyricsCloudPanelKt.LyricsCloudPanel (cognitive 42) app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:77— LyricsCloudPanelKt.LyricsCloudPanel has cognitive complexity 42 (threshold 15). Drivers by points: if/else 31 (33 pts), boolean chains 8, 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.
WebDavSourceSync.scan (cognitive 41) app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:200— WebDavSourceSync.scan has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PlayerPageLayoutEngine.computeCoverFrame (cognitive 41) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:274— PlayerPageLayoutEngine.computeCoverFrame has cognitive complexity 41 (threshold 15). Drivers by points: if/else 26 (28 pts), boolean chains 8, match/switch 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
UsbSk02DescriptorPrototypeReceiver.decodeMediaProbe (cognitive 39) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:498— UsbSk02DescriptorPrototypeReceiver.decodeMediaProbe has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, loops 2, match/switch 1 (2 pts), error handling 1 (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.
SongActionMenuSheetKt.AddToPlaylistSheet (cognitive 39) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:458— SongActionMenuSheetKt.AddToPlaylistSheet has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31 (37 pts), boolean chains 1, match/switch 1 (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.
CustomPlayerLowerPanelKt.CustomPlayerPagePanel (cognitive 39) app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:95— CustomPlayerLowerPanelKt.CustomPlayerPagePanel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 4, loops 1 (2 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DescriptorProbe.parse (cognitive 35) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1571— DescriptorProbe.parse has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (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.
SmbBrowserKt.naturalFileCompare (cognitive 35) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:204— SmbBrowserKt.naturalFileCompare has cognitive complexity 35 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 5 (13 pts), boolean chains 6 (nesting depth added 18). 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.
NotificationLyricsCoordinator.reconcile (cognitive 35) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:236— NotificationLyricsCoordinator.reconcile has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 11 (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.
PlayerPageLayoutEngine.computeFrame (cognitive 35) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:32— PlayerPageLayoutEngine.computeFrame has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 19, if/else 14, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel (cognitive 35) app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:46— RemoteMusicSettingsPanelKt.RemoteMusicSettingsPanel has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 4, match/switch 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.
SettingsScreenKt.SettingsScreen (cognitive 35) app/src/main/java/com/mica/music/ui/screens/settings/SettingsScreen.kt:68— SettingsScreenKt.SettingsScreen has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 7, match/switch 4 (7 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.
SmbFolderLibraryIndexer.discover (cognitive 34) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:160— SmbFolderLibraryIndexer.discover has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NotificationLyricsCoordinatorKt.buildExternalLyricsLine (cognitive 33) app/src/main/java/com/mica/music/media/NotificationLyricsCoordinator.kt:722— NotificationLyricsCoordinatorKt.buildExternalLyricsLine has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 7, match/switch 5 (7 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.
BlurredCoverBackgroundKt.BlurredCoverBackground (cognitive 32) app/src/main/java/com/mica/music/ui/theme/BlurredCoverBackground.kt:52— BlurredCoverBackgroundKt.BlurredCoverBackground has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 2, match/switch 1 (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.
EmbeddedLyricsReader.parseId3TagAt (cognitive 31) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:239— EmbeddedLyricsReader.parseId3TagAt has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4, match/switch 2 (4 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.
CustomWallpaperStackBlur.blur (cognitive 31) app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:18— CustomWallpaperStackBlur.blur has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 7 (11 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.
StarMapSceneProjector.project (cognitive 31) app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:937— StarMapSceneProjector.project has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 6, loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LibraryAutoSyncQaReceiver.runDeviceAuthorityGate (cognitive 30) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:357— LibraryAutoSyncQaReceiver.runDeviceAuthorityGate has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 16, if/else 9 (12 pts), error handling 1 (2 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
SongChangeDiagnostics.changedFields (cognitive 30) app/src/main/java/com/mica/music/data/SongChangeDiagnostics.kt:4— SongChangeDiagnostics.changedFields has cognitive complexity 30 (threshold 15). Drivers by points: if/else 30. 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.
SpectrumAnalysisEngine.tick (cognitive 30) app/src/main/java/com/mica/music/media/SpectrumAnalysisEngine.kt:110— SpectrumAnalysisEngine.tick has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 6 (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.
NowPlayingCoverRenderersKt.StandardCoverRenderer (cognitive 30) app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverRenderers.kt:244— NowPlayingCoverRenderersKt.StandardCoverRenderer has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 7, 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.
PlayerLowerPanelKt.PlayerLowerPanelSection (cognitive 30) app/src/main/java/com/mica/music/ui/screens/PlayerLowerPanel.kt:44— PlayerLowerPanelKt.PlayerLowerPanelSection has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 4, match/switch 1 (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.
MediaStoreScanner.loadExtendedAudioFileDrafts (cognitive 29) app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:371— MediaStoreScanner.loadExtendedAudioFileDrafts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (25 pts), match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SongRowKt.SongRow (cognitive 29) app/src/main/java/com/mica/music/ui/components/SongRow.kt:58— SongRowKt.SongRow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25 (27 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.
PlayerPageStateKt.rememberPlayerPageUiModel (cognitive 29) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageState.kt:87— PlayerPageStateKt.rememberPlayerPageUiModel has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
EncoderSettingsReader.parseId3TagAt (cognitive 28) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:96— EncoderSettingsReader.parseId3TagAt has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3, match/switch 2 (3 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.
FolderScanner.loadDrafts (cognitive 28) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:752— FolderScanner.loadDrafts has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, match/switch 2 (3 pts), error handling 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.
SleepTimerSheetKt.SleepTimerSheet (cognitive 28) app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:67— SleepTimerSheetKt.SleepTimerSheet has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23 (27 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.
HomeSortSheetsKt.HomeSortSheets (cognitive 28) app/src/main/java/com/mica/music/ui/screens/home/HomeSortSheets.kt:32— HomeSortSheetsKt.HomeSortSheets has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CoverFlowCarouselView.updateCurrentIndex (cognitive 28) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:344— CoverFlowCarouselView.updateCurrentIndex has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (21 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.
ParticleCoverRenderer.render (cognitive 27) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:147— ParticleCoverRenderer.render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PhotoStackTransitionView.drawProgressStrip (cognitive 27) app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:978— PhotoStackTransitionView.drawProgressStrip has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, loops 2, 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.
UsageTutorialScenesKt.TutorialSortScene (cognitive 27) app/src/main/java/com/mica/music/ui/screens/tutorial/UsageTutorialScenes.kt:81— UsageTutorialScenesKt.TutorialSortScene has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7 (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.
DsdMetadataReader.readDff (cognitive 26) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:111— DsdMetadataReader.readDff has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FolderScanner.verifyMissingObjectsBounded (cognitive 26) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:238— FolderScanner.verifyMissingObjectsBounded has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LyricsDisplayKt.LyricLineBlock (cognitive 26) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:239— LyricsDisplayKt.LyricLineBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7, match/switch 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DesktopLyricsOverlayServiceKt.ExternalLyricsLineText (cognitive 26) app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:628— DesktopLyricsOverlayServiceKt.ExternalLyricsLineText has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 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.
PinchZoomKt.pinchZoomGesture (cognitive 26) app/src/main/java/com/mica/music/ui/zoom/PinchZoom.kt:362— PinchZoomKt.pinchZoomGesture has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LrcParser.parseEntries (cognitive 25) app/src/main/java/com/mica/music/data/scanner/LrcParser.kt:130— LrcParser.parseEntries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 7, 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.
ScanProfilerKt.reusableCachedSong (cognitive 25) app/src/main/java/com/mica/music/data/scanner/ScanProfiler.kt:141— ScanProfilerKt.reusableCachedSong has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 8 (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.
TtmlLyricsParser.renderParagraph (cognitive 25) app/src/main/java/com/mica/music/data/scanner/TtmlLyricsParser.kt:146— TtmlLyricsParser.renderParagraph has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (8 pts), match/switch 3 (6 pts), boolean chains 2 (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.
MediaControllerQueueSync.planSync (cognitive 25) app/src/main/java/com/mica/music/playback/MediaControllerQueueSync.kt:124— MediaControllerQueueSync.planSync has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 7 (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.
BrowseGroupDisplaySheetKt.BrowseGroupDisplaySheet (cognitive 25) app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:26— BrowseGroupDisplaySheetKt.BrowseGroupDisplaySheet has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, match/switch 3 (6 pts) (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.
DeviceShadowObjectProbeExecutor.execute (cognitive 24) app/src/main/java/com/mica/music/data/library/DeviceShadowObjectProbeExecutor.kt:142— DeviceShadowObjectProbeExecutor.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, match/switch 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.
DsdMetadataReader.readId3PictureAt (cognitive 24) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:244— DsdMetadataReader.readId3PictureAt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, match/switch 2 (3 pts), 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.
PlaybackRuntime.setQueue (cognitive 24) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:1191— PlaybackRuntime.setQueue has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PlayerSheetHostKt.PlayerSheetHost (cognitive 24) app/src/main/java/com/mica/music/ui/components/PlayerSheetHost.kt:72— PlayerSheetHostKt.PlayerSheetHost has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 2, 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.
SongActionMenuSheetKt.LandscapeSongActionMenu (cognitive 24) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:312— SongActionMenuSheetKt.LandscapeSongActionMenu has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4 (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.
PinchZoomMath.settleTarget (cognitive 24) app/src/main/java/com/mica/music/ui/zoom/PinchZoom.kt:309— PinchZoomMath.settleTarget 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.
UsbSk02DescriptorPrototypeReceiver.probeHighResDecodeFormat (cognitive 23) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:405— UsbSk02DescriptorPrototypeReceiver.probeHighResDecodeFormat has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LibraryFollowupConsumer.drainBatchLocked (cognitive 23) app/src/main/java/com/mica/music/LibraryFollowupConsumer.kt:42— LibraryFollowupConsumer.drainBatchLocked has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicaMediaService.attachPlaybackStackOwners (cognitive 23) app/src/main/java/com/mica/music/media/MicaMediaService.kt:537— MicaMediaService.attachPlaybackStackOwners has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SongActionMenuSheetKt.SongActionMenuSheet (cognitive 23) app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:79— SongActionMenuSheetKt.SongActionMenuSheet has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DesktopLyricsOverlayServiceKt.DesktopLyricsOverlayContent (cognitive 23) app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:449— DesktopLyricsOverlayServiceKt.DesktopLyricsOverlayContent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 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.
LandscapeCoverFlowLyricsTransitionKt.landscapeCoverFlowImmersiveDragInput (cognitive 23) app/src/main/java/com/mica/music/ui/screens/LandscapeCoverFlowLyricsTransition.kt:201— LandscapeCoverFlowLyricsTransitionKt.landscapeCoverFlowImmersiveDragInput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, 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.
LetterLyricsPrototypeKt.buildLetterPages (cognitive 23) app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:1002— LetterLyricsPrototypeKt.buildLetterPages has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (17 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.
UsbSk02DescriptorPrototypeReceiver.beginGenerationPcm16Probe (cognitive 22) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:848— UsbSk02DescriptorPrototypeReceiver.beginGenerationPcm16Probe has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 10. 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.
LibraryCacheLoader.loadCachedLibrary (cognitive 22) app/src/main/java/com/mica/music/data/library/LibraryCacheLoader.kt:35— LibraryCacheLoader.loadCachedLibrary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 10. 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.
SafAutoSyncPipeline.executeInternal (cognitive 22) app/src/main/java/com/mica/music/data/library/SafAutoSyncPipeline.kt:40— SafAutoSyncPipeline.executeInternal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, 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.
AudioMetadataProbe.probeTrack (cognitive 22) app/src/main/java/com/mica/music/data/scanner/AudioMetadataProbe.kt:304— AudioMetadataProbe.probeTrack has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3 (4 pts), boolean chains 2, error handling 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.
PlaybackRuntime.bootstrapQueueFromPersistedSnapshot (cognitive 22) app/src/main/java/com/mica/music/playback/PlaybackRuntime.kt:1077— PlaybackRuntime.bootstrapQueueFromPersistedSnapshot has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3, match/switch 1 (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.
PlayerSpectrumStripKt.PlayerSpectrumStrip (cognitive 22) app/src/main/java/com/mica/music/ui/components/PlayerSpectrumStrip.kt:61— PlayerSpectrumStripKt.PlayerSpectrumStrip has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SettingsLyricsPanelKt.LyricsSettingsPanel (cognitive 22) app/src/main/java/com/mica/music/ui/screens/settings/SettingsLyricsPanel.kt:47— SettingsLyricsPanelKt.LyricsSettingsPanel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (19 pts), match/switch 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
RainGlassRenderThread.run (cognitive 22) app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:246— RainGlassRenderThread.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SmbDirectoryBrowser.list (cognitive 21) app/src/main/java/com/mica/music/data/remote/smb/SmbBrowser.kt:84— SmbDirectoryBrowser.list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
ApeHeaderReader.read (cognitive 21) app/src/main/java/com/mica/music/media/ape/ApeHeaderReader.kt:63— ApeHeaderReader.read has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 4, 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.
EqualizerCurveEditorKt.EqualizerCurveEditor (cognitive 21) app/src/main/java/com/mica/music/ui/components/EqualizerCurveEditor.kt:57— EqualizerCurveEditorKt.EqualizerCurveEditor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2, loops 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.
LyricsDisplayKt.KaraokeLyricLineText (cognitive 21) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:475— LyricsDisplayKt.KaraokeLyricLineText has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
PlaybackQueueSheetKt.QueueSongRow (cognitive 21) app/src/main/java/com/mica/music/ui/components/PlaybackQueueSheet.kt:399— PlaybackQueueSheetKt.QueueSongRow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20 (21 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.
LibraryQueueSyncPolicy.plan (cognitive 20) app/src/main/java/com/mica/music/LibraryQueueSyncPolicy.kt:40— LibraryQueueSyncPolicy.plan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 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.
SmbSourceSync.scan (cognitive 20) app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:132— SmbSourceSync.scan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MediaStorePresenceInventory.loadAudioRows (cognitive 20) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:71— MediaStorePresenceInventory.loadAudioRows has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MediaStoreTrackedPresenceInventory.loadAudioRows (cognitive 20) app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:117— MediaStoreTrackedPresenceInventory.loadAudioRows has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
LetterLyricsPrototypeKt.drawLetterColumn (cognitive 20) app/src/main/java/com/mica/music/ui/screens/LetterLyricsPrototype.kt:672— LetterLyricsPrototypeKt.drawLetterColumn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (2 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.
RemoteMusicSettingsPanelKt.RemoteSourceDialog (cognitive 20) app/src/main/java/com/mica/music/ui/screens/settings/RemoteMusicSettingsPanel.kt:308— RemoteMusicSettingsPanelKt.RemoteSourceDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 9. 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.
LibraryAutoSyncQaReceiver.runExternalProviderPayloadGate (cognitive 19) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1209— LibraryAutoSyncQaReceiver.runExternalProviderPayloadGate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, error handling 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.
UsbSk02DescriptorPrototypeReceiver.beginPcmUsbProbe (cognitive 19) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:713— UsbSk02DescriptorPrototypeReceiver.beginPcmUsbProbe has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 8. 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.
SafMassDeletionConfirmationPlanner.plan (cognitive 19) app/src/main/java/com/mica/music/data/library/SafMassDeletionConfirmationPlanner.kt:129— SafMassDeletionConfirmationPlanner.plan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 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.
ReadAheadSeekableByteSource.readAt (cognitive 19) app/src/main/java/com/mica/music/data/remote/SeekableByteSource.kt:58— ReadAheadSeekableByteSource.readAt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 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.
Id3FrameLister.listTagAt (cognitive 19) app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:30— Id3FrameLister.listTagAt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 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.
LyricsSanitizer.isBinaryGarbage (cognitive 19) app/src/main/java/com/mica/music/data/scanner/LyricsSanitizer.kt:110— LyricsSanitizer.isBinaryGarbage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MediaStoreTrackedLyricsSidecarInventory.loadComplete (cognitive 19) app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:50— MediaStoreTrackedLyricsSidecarInventory.loadComplete has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 1 (2 pts), boolean chains 1, 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.
SpectrumFft.shapeBands (cognitive 19) app/src/main/java/com/mica/music/media/SpectrumFft.kt:86— SpectrumFft.shapeBands has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 6 (7 pts), 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.
UsbHybridDsdRenderer.render (cognitive 19) app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:56— UsbHybridDsdRenderer.render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, error handling 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PlaybackErrorMapper.remotePresentation (cognitive 19) app/src/main/java/com/mica/music/playback/PlaybackErrorMapper.kt:76— PlaybackErrorMapper.remotePresentation has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, 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.
SleepTimerController.startTickLoop (cognitive 19) app/src/main/java/com/mica/music/playback/SleepTimerController.kt:115— SleepTimerController.startTickLoop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 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.
ExternalLyricsSettingsPanelKt.ExternalLyricsSettingsPanel (cognitive 19) app/src/main/java/com/mica/music/ui/screens/settings/ExternalLyricsSettingsPanel.kt:36— ExternalLyricsSettingsPanelKt.ExternalLyricsSettingsPanel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 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.
MicaGradientKt.gradientColors (cognitive 19) app/src/main/java/com/mica/music/ui/theme/MicaGradient.kt:22— MicaGradientKt.gradientColors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), 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.
UsbKernelDriverReconnectOwner.reconnectLocked (cognitive 18) app/src/debug/java/com/mica/music/media/usbprototype/UsbKernelDriverReconnectOwner.kt:31— UsbKernelDriverReconnectOwner.reconnectLocked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 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.
LyricsCacheCoordinator.load (cognitive 18) app/src/main/java/com/mica/music/data/LyricsDocumentMemoryCache.kt:83— LyricsCacheCoordinator.load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 2 (5 pts), error handling 2 (4 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.
ReleaseDates.compare (cognitive 18) app/src/main/java/com/mica/music/data/ReleaseDate.kt:44— ReleaseDates.compare has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 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.
LibrarySyncScheduler.onFinished (cognitive 18) app/src/main/java/com/mica/music/data/library/LibrarySyncScheduler.kt:610— LibrarySyncScheduler.onFinished has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, match/switch 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.
WebDavSeekableByteSource.readAt (cognitive 18) app/src/main/java/com/mica/music/data/remote/webdav/WebDavSeekableByteSource.kt:22— WebDavSeekableByteSource.readAt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, error handling 3, 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.
UsbHybridSessionOwner.requestOpen (cognitive 18) app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridSessionOwner.kt:258— UsbHybridSessionOwner.requestOpen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SongListPanelKt.SongZoomGeometryLayer (cognitive 18) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:325— SongListPanelKt.SongZoomGeometryLayer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16 (18 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.
OwnedLyricsPositionMotion.accept (cognitive 18) app/src/main/java/com/mica/music/ui/screens/LyricsOwnedPositionMotion.kt:108— OwnedLyricsPositionMotion.accept has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (3 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.
PhotoStackLyricsTransitionKt.photoStackLyricsSwipe (cognitive 18) app/src/main/java/com/mica/music/ui/screens/PhotoStackLyricsTransition.kt:159— PhotoStackLyricsTransitionKt.photoStackLyricsSwipe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, 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.
PlayerPageLayoutEngine.computeLowerLayoutPlan (cognitive 18) app/src/main/java/com/mica/music/ui/screens/player/PlayerPageLayoutEngine.kt:570— PlayerPageLayoutEngine.computeLowerLayoutPlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16 (17 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.
UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe (cognitive 17) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:946— UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 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. This shape REPEATS in the file: one other method here (UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe (cognitive 17) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1027— UsbSk02DescriptorPrototypeReceiver.beginSilentPcm16Probe has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 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. This shape REPEATS in the file: one other method here (UsbSk02DescriptorPrototypeReceiver.beginSustainedPcm16Probe) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NavidromeCatalogPager.listSongs (cognitive 17) app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeCatalogPager.kt:15— NavidromeCatalogPager.listSongs 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.
AlbumArtCache.pruneUnreferenced (cognitive 17) app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:362— AlbumArtCache.pruneUnreferenced has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AudioProbeBytes.readMp4Moov (cognitive 17) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:485— AudioProbeBytes.readMp4Moov has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 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.
FolderScanner.collectLibraryFilesFallback (cognitive 17) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:1229— FolderScanner.collectLibraryFilesFallback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SongListPanelKt.SongZoomSceneItem (cognitive 17) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:552— SongListPanelKt.SongZoomSceneItem 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.
HomeBrowseContentKt.BrowseGroupMorphOverlay (cognitive 17) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1546— HomeBrowseContentKt.BrowseGroupMorphOverlay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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.
UsageTutorialKt.UsageTutorialScreen (cognitive 17) app/src/main/java/com/mica/music/ui/screens/tutorial/UsageTutorial.kt:74— UsageTutorialKt.UsageTutorialScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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.
StarMapSceneProjector.buildTransitionCandidates (cognitive 17) app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:1069— StarMapSceneProjector.buildTransitionCandidates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 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.
StarMapRenderer.render (cognitive 17) app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:1476— StarMapRenderer.render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 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.
LibraryAutoSyncQaPickerClickService.tryClickIsolatedPicker (cognitive 16) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaPickerClickService.kt:45— LibraryAutoSyncQaPickerClickService.tryClickIsolatedPicker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 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.
LibraryBrowseCoordinator.prewarmBrowseGroupCache (cognitive 16) app/src/main/java/com/mica/music/data/library/LibraryBrowseCoordinator.kt:148— LibraryBrowseCoordinator.prewarmBrowseGroupCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 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.
LibraryDirtySignalObserver.refreshSafGenerationWatchLoop (cognitive 16) app/src/main/java/com/mica/music/data/library/LibraryDirtySignalObserver.kt:243— LibraryDirtySignalObserver.refreshSafGenerationWatchLoop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 2 (4 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.
SafRetryPlanningLoader.load (cognitive 16) app/src/main/java/com/mica/music/data/library/SafRetryPlanningLoader.kt:20— SafRetryPlanningLoader.load has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5, loops 1 (2 pts), match/switch 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.
SafUnknownFingerprintDebtPlanner.plan (cognitive 16) app/src/main/java/com/mica/music/data/library/SafUnknownFingerprintDebtPlanner.kt:38— SafUnknownFingerprintDebtPlanner.plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, 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.
RemoteCatalogRepository.replaceSmbFolderScopeIfCurrent (cognitive 16) app/src/main/java/com/mica/music/data/remote/RemoteCatalogRepository.kt:265— RemoteCatalogRepository.replaceSmbFolderScopeIfCurrent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DeviceShadowCanonicalCatalog.changedAspects (cognitive 16) app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:155— DeviceShadowCanonicalCatalog.changedAspects 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.
EmbeddedLyricsReader.parseSylt (cognitive 16) app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:317— EmbeddedLyricsReader.parseSylt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LyricsEncoding.looksLikeMojibake (cognitive 16) app/src/main/java/com/mica/music/data/scanner/LyricsEncoding.kt:403— LyricsEncoding.looksLikeMojibake has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 6, match/switch 1 (2 pts), 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.
MediaStoreScannerKt.reconcileMediaStoreFolderCasing (cognitive 16) app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:519— MediaStoreScannerKt.reconcileMediaStoreFolderCasing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 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.
Mp4LyricsReader.scanTextDataAtoms (cognitive 16) app/src/main/java/com/mica/music/data/scanner/Mp4LyricsReader.kt:73— Mp4LyricsReader.scanTextDataAtoms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, 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.
SafFastVerifyPlanner.plan (cognitive 16) app/src/main/java/com/mica/music/data/scanner/SafFastVerify.kt:96— SafFastVerifyPlanner.plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 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.
MicaMediaSessionCallback.onCustomCommand (cognitive 16) app/src/main/java/com/mica/music/media/MicaMediaSessionCallback.kt:91— MicaMediaSessionCallback.onCustomCommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DefaultUsbOutputCoordinator.onTopologyEvent (cognitive 16) app/src/main/java/com/mica/music/media/UsbOutputCoordinator.kt:262— DefaultUsbOutputCoordinator.onTopologyEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, 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.
UsbHybridDsdRenderer.runSessionAction (cognitive 16) app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridDsdRenderer.kt:203— UsbHybridDsdRenderer.runSessionAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts) (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.
PlaylistSongListPanelKt.PlaylistSongListPanel (cognitive 16) app/src/main/java/com/mica/music/ui/components/PlaylistSongListPanel.kt:46— PlaylistSongListPanelKt.PlaylistSongListPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 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.
SongListPanelKt.SongZoomMorphOverlay (cognitive 16) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:426— SongListPanelKt.SongZoomMorphOverlay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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.
CustomPlayerLowerPanelKt.CustomPlayerEditChrome (cognitive 16) app/src/main/java/com/mica/music/ui/screens/CustomPlayerLowerPanel.kt:515— CustomPlayerLowerPanelKt.CustomPlayerEditChrome has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 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.
LyricsCloudPanelKt.CloudLyricLine (cognitive 16) app/src/main/java/com/mica/music/ui/screens/LyricsCloudPanel.kt:566— LyricsCloudPanelKt.CloudLyricLine 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.
SettingsPlaybackPanelKt.PlaybackSettingsPanel (cognitive 16) app/src/main/java/com/mica/music/ui/screens/settings/SettingsPlaybackPanel.kt:37— SettingsPlaybackPanelKt.PlaybackSettingsPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Change-coupling hub: MicaDatabaseMigrations.kt → Song.kt, MicaDatabase.kt, SongEntity.kt app/src/main/java/com/mica/music/data/local/MicaDatabaseMigrations.kt— `app/src/main/java/com/mica/music/data/local/MicaDatabaseMigrations.kt` changes together with 3 other files — `app/src/main/java/com/mica/music/data/Song.kt`, `app/src/main/java/com/mica/music/data/local/MicaDatabase.kt`, `app/src/main/java/com/mica/music/data/local/SongEntity.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.
Near-duplicate member pair (45 shared lines) app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:37— app/src/main/java/com/mica/music/ui/components/BrowseGroupDisplaySheet.kt:37-183 | app/src/main/java/com/mica/music/ui/components/SongSortSheet.kt:39-199 — 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.
Near-duplicate member pair (42 shared lines) app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:16— app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeArtworkHttpStreamer.kt:16-98 | app/src/main/java/com/mica/music/data/remote/navidrome/NavidromeHttpExecutor.kt:18-91 — These two members are variants of one another: 42 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 (33 shared lines) app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:56— app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:56-141 | app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:77-210 — These two members are variants of one another: 33 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 (27 shared lines) app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:46— app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:46-112 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.kt:53-128 — 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· Edited copy of a member (143 corresponding lines) · ×1
Edited copy of a member (143 corresponding lines) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:592— app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:592-734 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:53-197 — These two members are one piece of code written twice and then edited apart: 143 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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/mica/music/ui/components/SongListPanel.kt:440— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:440-515 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1557-1645 — 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 (91 corresponding lines) · ×1
Edited copy of a member (91 corresponding lines) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:516— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:516-613 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:722-812 — 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 (48 corresponding lines) · ×1
Edited copy of a member (48 corresponding lines) app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:77— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:77-124 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:158-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.
D4 · Code Duplication· Edited copy of a member (46 corresponding lines) · ×1
Edited copy of a member (46 corresponding lines) app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:96— app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:96-153 | app/src/main/java/com/mica/music/data/scanner/Id3FrameLister.kt:35-80 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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) · ×1
Edited copy of a member (44 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:812— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:812-865 | app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:867-910 — 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 (56 corresponding lines) · ×1
Edited copy of a member (56 corresponding lines) app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:431— app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:431-497 | app/src/main/java/com/mica/music/data/library/SafShadowObjectProbeExecutor.kt:503-558 — These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (49 corresponding lines) · ×1
Edited copy of a member (49 corresponding lines) app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:46— app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:46-106 | app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt:33-81 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (68 corresponding lines) · ×1
Edited copy of a member (68 corresponding lines) app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:105— app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:105-173 | app/src/main/java/com/mica/music/ui/components/DirectionalTrackWipe.kt:183-250 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (60 corresponding lines) · ×1
Edited copy of a member (60 corresponding lines) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:338— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:338-398 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1476-1535 — 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 (45 corresponding lines) · ×1
Edited copy of a member (45 corresponding lines) app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:31— app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:31-89 | app/src/main/java/com/mica/music/data/library/AutoSyncPublicationAuthority.kt:95-139 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (61 corresponding lines) · ×1
Edited copy of a member (61 corresponding lines) app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:246— app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:246-321 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:189-249 — These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (52 corresponding lines) · ×1
Edited copy of a member (52 corresponding lines) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:622— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:622-684 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:977-1028 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×1
Edited copy of a member (27 corresponding lines) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:438— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:438-472 | app/src/main/java/com/mica/music/ui/components/NarrowBarSoftKaraokeLyric.kt:196-222 — 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 (57 corresponding lines) · ×1
Edited copy of a member (57 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:238— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:238-300 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:354-410 — These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 27+ corresponding lines) · ×1
Edited copies of one member (3 members, 27+ corresponding lines) app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:51— app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:51-77 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:84-111 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavStreamRequestResolver.kt:87-114 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (37 corresponding lines) · ×1
Edited copy of a member (37 corresponding lines) app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:20— app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:20-56 | app/src/main/java/com/mica/music/data/AppLetterSealImporter.kt:21-73 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 22+ corresponding lines) · ×1
Edited copies of one member (3 members, 22+ corresponding lines) app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:33— app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:33-54 | app/src/main/java/com/mica/music/data/remote/smb/SmbArtworkTransport.kt:61-82 | app/src/main/java/com/mica/music/data/remote/smb/SmbPlaybackTransport.kt:41-62 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (41 corresponding lines) · ×1
Edited copy of a member (41 corresponding lines) app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:205— app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:205-245 | app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:251-291 — 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 copy of a member (50 corresponding lines) · ×1
Edited copy of a member (50 corresponding lines) app/src/main/java/com/mica/music/data/local/SongEntity.kt:168— app/src/main/java/com/mica/music/data/local/SongEntity.kt:168-218 | app/src/main/java/com/mica/music/data/local/SongEntity.kt:220-269 — 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 (40 corresponding lines) · ×1
Edited copy of a member (40 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:333— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:333-373 | app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:375-414 — 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 (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) app/src/main/java/com/mica/music/media/usbhybrid/AndroidUsbHybridControlEffects.kt:135— app/src/main/java/com/mica/music/media/usbhybrid/AndroidUsbHybridControlEffects.kt:135-179 | app/src/main/java/com/mica/music/media/usbhybrid/AndroidUsbHybridControlEffects.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.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×1
Edited copy of a member (29 corresponding lines) app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:94— app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:94-123 | app/src/main/java/com/mica/music/ui/theme/NowPlayingBackground.kt:131-159 — 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 copies of one member (3 members, 17+ corresponding lines) · ×1
Edited copies of one member (3 members, 17+ corresponding lines) app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:388— app/src/main/java/com/mica/music/ui/components/LyricsDisplay.kt:388-404 | app/src/main/java/com/mica/music/ui/components/NarrowBarSoftKaraokeLyric.kt:226-242 | app/src/main/java/com/mica/music/ui/overlay/DesktopLyricsOverlayService.kt:883-899 — These 3 members are one piece of code written 3 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 3 times and the copies 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/mica/music/data/remote/RemoteSourceManager.kt:67— app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:67-90 | app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:98-121 | app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:128-151 — 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 copies of one member (5 members, 13+ corresponding lines) · ×1
Edited copies of one member (5 members, 13+ corresponding lines) app/src/main/java/com/mica/music/data/PlaylistStore.kt:101— app/src/main/java/com/mica/music/data/PlaylistStore.kt:101-113 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:186-200 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:202-217 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:337-351 | app/src/main/java/com/mica/music/data/PlaylistStore.kt:384-401 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 23+ corresponding lines) · ×1
Edited copies of one member (3 members, 23+ corresponding lines) app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:241— app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:241-269 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:373-400 | app/src/main/java/com/mica/music/widget/MicaPlaybackWidget.kt:884-906 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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, 14+ corresponding lines) · ×1
Edited copies of one member (3 members, 14+ corresponding lines) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:338— app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:338-352 | app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:262-275 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:309-322 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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/mica/music/data/remote/RemoteSourceManager.kt:266— app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:266-279 | app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:284-296 | app/src/main/java/com/mica/music/data/remote/RemoteSourceManager.kt:301-313 — 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 (4 members, 10+ corresponding lines) · ×1
Edited copies of one member (4 members, 10+ corresponding lines) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1500— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1500-1509 | app/src/main/java/com/mica/music/data/local/StorageDiagnostics.kt:304-316 | app/src/main/java/com/mica/music/data/scanner/AlbumArtCache.kt:230-241 | app/src/main/java/com/mica/music/media/usbhybrid/UsbHybridDiagnosticsReport.kt:113-124 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (7 members, 6+ corresponding lines) · ×1
Edited copies of one member (7 members, 6+ corresponding lines) app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:305— app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt:305-310 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:577-583 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:593-598 | app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt:600-606 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:680-686 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:688-694 | app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.kt:704-709 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (3 corresponding lines) · ×1
Edited copy of a member (3 corresponding lines) app/src/main/java/com/mica/music/data/remote/RemoteLyricsRevision.kt:54— app/src/main/java/com/mica/music/data/remote/RemoteLyricsRevision.kt:54-56 | app/src/main/java/com/mica/music/data/remote/RevisionedDiskCache.kt:73-75 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (4 corresponding lines) · ×1
Edited copy of a member (4 corresponding lines) app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:745— app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:745-748 | app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.kt:1466-1469 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (103 lines × 2) app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:618— app/src/main/java/com/mica/music/data/scanner/FolderScanner.kt:618-720 | app/src/main/java/com/mica/music/data/scanner/MediaStoreScanner.kt:78-180 — 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/mica/music/data/scanner/FolderScanner.kt:618` 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 (73 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1547— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1547-1619 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1906-1978 — 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/mica/music/ui/screens/NowPlayingScreen.kt:1547` 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 (49 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1487— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1487-1535 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1830-1878 — 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/mica/music/ui/screens/NowPlayingScreen.kt:1487` 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 (37 lines × 2) app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:88— app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.kt:88-124 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowCanonicalCatalog.kt:171-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. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/library/SafShadowCanonicalProjection.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 (35 lines × 2) app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:1214— app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:1214-1248 | app/src/main/java/com/mica/music/ui/screens/home/HomeScreen.kt:1268-1302 — 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 (32 lines × 2) app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:526— app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:526-557 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:733-764 — 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/mica/music/ui/screens/HomeBrowseContent.kt:526` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (21–28 lines × 2) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:158— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:158-185 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:864-884 — 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/mica/music/ui/components/SongListPanel.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 (23–24 lines × 2) app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPublicationPlanner.kt:70— app/src/main/java/com/mica/music/data/library/DeviceAutoSyncPublicationPlanner.kt:70-93 | app/src/main/java/com/mica/music/data/library/SafAutoSyncPublicationPlanner.kt:112-134 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (21–23 lines × 2) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:447— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:447-467 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:552-574 — 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/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:447` 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–21 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:182— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:182-201 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:233-253 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (14–21 lines × 2) app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:62— app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:62-82 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:117-130 — 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 (16–20 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:304— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:304-323 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:377-392 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:304` 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/mica/music/ui/components/SettingsRows.kt:160— app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:160-179 | app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:206-225 — 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/mica/music/ui/components/SettingsRows.kt:160` 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/mica/music/ui/components/SettingsRows.kt:204` calls `mutableStateOf`, `toString` and `app/src/main/java/com/mica/music/ui/components/SettingsRows.kt:159` 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 × 4) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:399— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:399-417 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:207-225 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:420-438 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:298-316 — 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. 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–19 lines × 2) app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:298— app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:298-315 | app/src/main/java/com/mica/music/data/library/SafShadowRelationRematcher.kt:322-340 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26–27 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:102— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:102-128 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:153-178 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:102` 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 (24 lines × 2) app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:209— app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:209-232 | app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt:263-286 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt` and `app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.kt` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt:209` 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 (17–19 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1673— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1673-1691 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1790-1806 — 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/mica/music/ui/screens/NowPlayingScreen.kt:1673` 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 (18 lines × 3) app/src/main/java/com/mica/music/data/local/SongEntity.kt:168— app/src/main/java/com/mica/music/data/local/SongEntity.kt:168-185 | app/src/main/java/com/mica/music/data/local/SongEntity.kt:220-237 | app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt:59-76 — 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/mica/music/data/local/SongEntity.kt:168` 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–18 lines × 3) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:371— app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:371-387 | app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:320-336 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:349-366 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:371` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:319` calls `ensureCurrent` and `app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:370` 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 (13–17 lines × 4) app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:20— app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:20-35 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:37-49 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:82-97 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:102-118 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:100` calls `QualityBadgeVector`, `Path` and `app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:37` 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–16 lines × 4) app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:292— app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:292-307 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:751-765 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1512-1526 | app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaReceiver.kt:1576-1590 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–15 lines × 2) app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:648— app/src/main/java/com/mica/music/ui/components/SongListPanel.kt:648-658 | app/src/main/java/com/mica/music/ui/screens/HomeBrowseContent.kt:1768-1782 — 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/mica/music/ui/components/SongListPanel.kt:648` 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–15 lines × 2) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1458— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1458-1472 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1718-1730 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12–13 lines × 4) app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:65— app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt:65-77 | app/src/main/java/com/mica/music/data/AppLetterSealImporter.kt:82-94 | app/src/main/java/com/mica/music/data/AppWallpaperImporter.kt:46-58 | app/src/main/java/com/mica/music/data/PlaylistCoverImporter.kt:57-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 all 4 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 4) app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1555— app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1555-1567 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1633-1645 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1753-1765 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1914-1926 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1555` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1768` calls `openSongActionMenu` and `app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1568` 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–13 lines × 2) app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:88— app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:88-100 | app/src/main/java/com/mica/music/ui/theme/CustomWallpaperStackBlur.kt:174-185 — 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/mica/music/ui/theme/CustomWallpaperStackBlur.kt:88` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 4) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:797— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:797-808 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:926-937 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1008-1019 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1091-1102 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:797` 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 × 3) app/src/main/java/com/mica/music/ui/screens/HorizontalClassicLyricsPage.kt:55— app/src/main/java/com/mica/music/ui/screens/HorizontalClassicLyricsPage.kt:55-66 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:1274-1285 | app/src/main/java/com/mica/music/ui/screens/NowPlayingScreen.kt:2202-2213 — 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.
Duplicated block (11 lines × 5) app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:70— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:70-80 | app/src/main/java/com/mica/music/ui/screens/EqualizerScreen.kt:174-184 | app/src/main/java/com/mica/music/ui/screens/SoundFxScreen.kt:248-258 | app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.kt:50-60 | app/src/main/java/com/mica/music/ui/screens/VersionUpdateScreen.kt:74-84 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt` and `app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:70` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/mica/music/ui/screens/EqualizerScreen.kt:173` calls `fillMaxWidth` and `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:69` 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 × 4) app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:28— app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:28-38 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:42-52 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:63-73 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:111-121 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 2) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:266— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverView.kt:266-276 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:135-143 — 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/mica/music/ui/screens/player/view/ParticleCoverView.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (10 lines × 7) app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:71— app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:71-80 | app/src/main/java/com/mica/music/ui/screens/EqualizerScreen.kt:175-184 | app/src/main/java/com/mica/music/ui/screens/MetadataDebugScreen.kt:179-188 | app/src/main/java/com/mica/music/ui/screens/SongDetailScreen.kt:80-89 | app/src/main/java/com/mica/music/ui/screens/SoundFxScreen.kt:249-258 | app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.kt:51-60 | app/src/main/java/com/mica/music/ui/screens/VersionUpdateScreen.kt:75-84 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt` and `app/src/main/java/com/mica/music/ui/screens/SpatialAudioScreen.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:71` 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/mica/music/ui/screens/EqualizerScreen.kt:173` calls `fillMaxWidth` and `app/src/main/java/com/mica/music/ui/screens/AboutScreen.kt:69` 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 (10 lines × 3) app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:60— app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:60-69 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:93-102 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavStreamRequestResolver.kt:96-105 — 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.
Duplicated block (9 lines × 6) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:728— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:728-736 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:861-869 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:953-961 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1034-1042 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1153-1161 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1215-1223 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:728` 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 × 3) app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:19— app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:19-27 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:61-69 | app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:101-109 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:70` calls `close`, `moveTo` and `app/src/main/java/com/mica/music/ui/components/QualityBadgeVector.kt:28` 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 (8–9 lines × 2) app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:165— app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:165-172 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:252-260 — 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/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:165` 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 (6–8 lines × 4) app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:752— app/src/main/java/com/mica/music/ui/screens/player/view/ParticleCoverRenderer.kt:752-757 | app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:374-380 | app/src/main/java/com/mica/music/ui/theme/RainGlassBackground.kt:701-707 | app/src/main/java/com/mica/music/ui/theme/StarMapGlBackground.kt:2070-2077 — 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6–7 lines × 3) app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:48— app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt:48-54 | app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt:35-41 | app/src/main/java/com/mica/music/ui/screens/settings/color/HsvColorSlider.kt:40-45 — before extracting anything, compare `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.kt` and `app/src/main/java/com/mica/music/ui/components/HiFiSeekBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/CoverEdgeProgressBar.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. 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 × 7) app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:265— app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:265-270 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:722-726 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:947-951 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1028-1032 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1147-1151 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1209-1213 | app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:1282-1286 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt:265` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 × 4) app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:377— app/src/main/java/com/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:377-386 | app/src/main/java/com/mica/music/data/remote/smb/SmbNowPlayingMetadata.kt:123-127 | app/src/main/java/com/mica/music/data/remote/smb/SmbSourceSync.kt:326-335 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavCatalogAdapter.kt:355-364 — 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/mica/music/data/remote/smb/SmbFolderLibraryIndexer.kt:377` 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 (4–5 lines × 3) app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:301— app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:301-305 | app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:385-389 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:199-202 — before extracting anything, compare `app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:301` 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/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:299` calls `getColumnIndex` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:198` 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 (4–5 lines × 4) app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:139— app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:139-143 | app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:200-203 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:140-143 | app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt:254-259 — there are 4 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 4 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/mica/music/data/scanner/DeviceObjectRevisionReader.kt:137` calls `getColumnIndex` and `app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt:198` 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 (8 lines × 7) app/src/main/java/com/mica/music/data/preferences/AppearancePreferences.kt:156— app/src/main/java/com/mica/music/data/preferences/AppearancePreferences.kt:156-163 | app/src/main/java/com/mica/music/data/preferences/AppearancePreferences.kt:170-177 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:250-257 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:307-314 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:323-330 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:338-345 | app/src/main/java/com/mica/music/data/preferences/LyricsPreferences.kt:536-543 — there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (14 lines × 3) app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:128— app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:128-141 | app/src/main/java/com/mica/music/ui/components/SleepTimerSheet.kt:197-210 | app/src/main/java/com/mica/music/ui/components/SongActionMenuSheet.kt:617-630 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/mica/music/ui/components/PlaybackTuningSheet.kt:128` 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 × 3) app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:53— app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:53-58 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavArtworkTransport.kt:86-91 | app/src/main/java/com/mica/music/data/remote/webdav/WebDavStreamRequestResolver.kt:89-94 — 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. 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 predicate app/src/main/java/com/mica/music/data/AppWallpaperStore.kt:57— `!directory.exists() && !directory.mkdirs()` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/AppWallpaperStore.kt, app/src/main/java/com/mica/music/data/PlaylistCoverImporter.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/mica/music/ui/theme/DynamicLightGlBackgroundView.kt:317— `!it.isRecycled && it.width > 0 && it.height > 0` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackgroundView.kt, app/src/main/java/com/mica/music/ui/theme/RainGlassBackdrop.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/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt:89— `!name.endsWith(".lrc", ignoreCase = true) && !name.endsWith(".ttml", ignoreCase = true)` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/scanner/MediaStoreLyricsSidecarInventory.kt, app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedLyricsSidecarInventory.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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:271— `awaitingCommittedPlayIndex == null || index == lastSupersededHostIndex` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt, app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.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/mica/music/data/library/LibraryOperationAuthority.kt:29— `backing.released || backing.releaseRequested` appears character-identically in 4 files — app/src/main/java/com/mica/music/data/library/LibraryOperationAuthority.kt, app/src/main/java/com/mica/music/data/library/LibraryPublicationAuthority.kt, app/src/main/java/com/mica/music/data/library/LibraryScanEngine.kt, app/src/main/java/com/mica/music/data/library/LibrarySyncScheduler.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/mica/music/ui/theme/DynamicArtworkBackground.kt:107— `bitmap != null && !bitmap.isRecycled && bitmap.width > 0 && bitmap.height > 0` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/theme/DynamicArtworkBackground.kt, app/src/main/java/com/mica/music/ui/theme/DynamicLightGlBackground.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/mica/music/data/AppHiResBadgeImporter.kt:69— `bounds.outWidth <= 0 || bounds.outHeight <= 0` appears character-identically in 5 files — app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt, app/src/main/java/com/mica/music/data/AppLetterSealImporter.kt, app/src/main/java/com/mica/music/data/AppWallpaperImporter.kt, app/src/main/java/com/mica/music/data/PlaylistCoverImporter.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/mica/music/data/remote/SeekableByteSource.kt:65— `bufferOffset >= 0 && length >= 0 && bufferOffset + length <= buffer.size` appears character-identically in 3 files — app/src/main/java/com/mica/music/data/remote/SeekableByteSource.kt, app/src/main/java/com/mica/music/data/remote/smb/SmbSeekableByteSource.kt, app/src/main/java/com/mica/music/data/remote/webdav/WebDavSeekableByteSource.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/mica/music/data/scanner/DsdMetadataReader.kt:325— `bytes[i] == 0.toByte() && bytes[i + 1] == 0.toByte()` appears character-identically in 3 files — app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt, app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt, app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.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/mica/music/data/library/LibraryDirtySignalObserver.kt:131— `cause == LibraryOperationCause.MEDIASTORE_AUDIO_DIRTY || cause == LibraryOperationCause.MEDIASTORE_FILES_DIRTY` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/library/LibraryDirtySignalObserver.kt, app/src/main/java/com/mica/music/data/library/SafAutoSyncTargetedHint.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/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt:468— `columnIndex >= 0 && !isNull(columnIndex)` appears character-identically in 9 files — app/src/main/java/com/mica/music/data/scanner/DeviceMediaStoreDeltaReader.kt, app/src/main/java/com/mica/music/data/scanner/DeviceObjectRevisionReader.kt, app/src/main/java/com/mica/music/data/scanner/DeviceShadowProbeDraftReader.kt, app/src/main/java/com/mica/music/data/scanner/FolderScanner.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/mica/music/ui/components/MarqueeTitleText.kt:38— `containerWidthPx > 0 && textWidthPx > containerWidthPx` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/components/MarqueeTitleText.kt, app/src/main/java/com/mica/music/ui/components/MiniPlayer.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/mica/music/data/PlayHistoryStore.kt:56— `count != 0 || lastPlayedAtMs != 0L || totalListenSeconds != 0L` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/PlayHistoryStore.kt, app/src/main/java/com/mica/music/data/remote/RemotePlayStatsPresentation.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/mica/music/ui/screens/NowPlayingCoverSection.kt:188— `coverFlowMode == PlayerCoverFlowMode.PAUSE_FOLD || coverFlowMode == PlayerCoverFlowMode.RETRO_3D` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/screens/NowPlayingCoverSection.kt, app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.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/mica/music/data/AppHiResBadgeImporter.kt:83— `currentWidth > MAX_DECODE_SIDE_PX || currentHeight > MAX_DECODE_SIDE_PX` appears character-identically in 3 files — app/src/main/java/com/mica/music/data/AppHiResBadgeImporter.kt, app/src/main/java/com/mica/music/data/AppWallpaperImporter.kt, app/src/main/java/com/mica/music/data/PlaylistCoverImporter.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/mica/music/data/scanner/DsdMetadataReader.kt:347— `data[i] == 0xFF.toByte() && i + 1 < data.size && data[i + 1] == 0.toByte()` appears character-identically in 3 files — app/src/main/java/com/mica/music/data/scanner/DsdMetadataReader.kt, app/src/main/java/com/mica/music/data/scanner/EmbeddedLyricsReader.kt, app/src/main/java/com/mica/music/data/scanner/EncoderSettingsReader.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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:304— `dragging || trackAnimator != null || settleAnimator != null || pendingPlayQueueIndex != null` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt, app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:270— `index != latestTarget && SystemClock.uptimeMillis() < hostIndexGuardUntilMs` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt, app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.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/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt:253— `index != pendingPlay && index != lastSupersededHostIndex` appears character-identically in 2 files — app/src/main/java/com/mica/music/ui/screens/player/view/CoverFlowCarouselView.kt, app/src/main/java/com/mica/music/ui/screens/player/view/PhotoStackTransitionView.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/mica/music/media/MicaAudioProcessorChain.kt:161— `inputEnded && !pendingInput.hasRemaining()` appears character-identically in 2 files — app/src/main/java/com/mica/music/media/MicaAudioProcessorChain.kt, app/src/main/java/com/mica/music/media/PipelineFormatTraceAudioProcessor.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/mica/music/audio/eq/SoftwareEqualizerAudioProcessor.kt:64— `inputEnded && !pendingOutput.hasRemaining()` appears character-identically in 2 files — app/src/main/java/com/mica/music/audio/eq/SoftwareEqualizerAudioProcessor.kt, app/src/main/java/com/mica/music/media/SpectrumAudioProcessor.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/mica/music/data/scanner/MediaStorePresenceInventory.kt:147— `isMusic || mime.startsWith("audio/", ignoreCase = true)` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/scanner/MediaStorePresenceInventory.kt, app/src/main/java/com/mica/music/data/scanner/MediaStoreTrackedPresenceInventory.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/mica/music/data/playback/ServicePlaybackStateStore.kt:331— `it == Player.REPEAT_MODE_OFF || it == Player.REPEAT_MODE_ONE || it == Player.REPEAT_MODE_ALL` appears character-identically in 2 files — app/src/main/java/com/mica/music/data/playback/ServicePlaybackStateStore.kt, app/src/main/java/com/mica/music/media/ServicePlaybackBootstrapResolver.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/mica/music/data/library/DeviceAutoProbePlanner.kt:171— `it.activationEpoch == null || it.activationEpoch == activationEpoch` appears character-identically in 4 files — app/src/main/java/com/mica/music/data/library/DeviceAutoProbePlanner.kt, app/src/main/java/com/mica/music/data/library/DeviceShadowRetryPlanner.kt, app/src/main/java/com/mica/music/data/library/SafShadowRetryPlanner.kt, app/src/main/java/com/mica/music/data/library/SafUnknownFingerprintDebtPlanner.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/debug/java/com/mica/music/media/usbprototype/UsbSk02AudioOutputProvider.kt:487— `it.id == AUDIO_CONTROL_INTERFACE_ID && it.alternateSetting == 0` appears character-identically in 2 files — app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02AudioOutputProvider.kt, app/src/debug/java/com/mica/music/media/usbprototype/UsbSk02DescriptorPrototypeReceiver.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Silent fallback default in catch app/src/debug/java/com/mica/music/data/LibraryAutoSyncQaProfileService.kt:1677— `readSelfVmRssKb` swallows every exception into `-1L` — 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/mica/music/data/EqCustomProfileStore.kt:67— `listProfiles` 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/mica/music/data/PlaybackSessionStore.kt:102— `decodeSongIds` 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/mica/music/data/preferences/LibraryBrowseSettings.kt:97— `customSongOrderIds` 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/mica/music/data/preferences/LibraryBrowseSettings.kt:219— `readStringArray` 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/mica/music/data/scanner/LyricsEncoding.kt:291— `decodeStrict` 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/mica/music/util/AudioEnvironmentDiagnostics.kt:92— `installedEffectCandidates` 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/mica/music/util/AudioEnvironmentDiagnostics.kt:125— `registeredSystemEffects` 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/mica/music/util/AudioEnvironmentDiagnostics.kt:156— `runningEffectProcesses` 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/mica/music/util/AudioEnvironmentDiagnostics.kt:173— `installedEffectPackageNames` swallows every exception into `emptySet()` — 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/mica/music/util/AudioEnvironmentDiagnostics.kt:179— `activePlaybackCount` swallows every exception into `-1` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
Silent fallback default in catch third_party/sylvakru-usb-transport/src/main/kotlin/com/afalphy/sylvakru/UsbStandardHardwareVolumeController.kt:88— `collectDiagnostics` 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 third_party/sylvakru-usb-transport/src/main/kotlin/com/afalphy/sylvakru/UsbStandardHardwareVolumeController.kt:398— `diagnostics` 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 third_party/sylvakru-usb-transport/src/main/kotlin/com/afalphy/sylvakru/UsbStreamingTargetResolver.kt:307— `queryUac2ClockSampleRateCapability` 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 third_party/sylvakru-usb-transport/src/main/kotlin/com/afalphy/sylvakru/UsbStreamingTargetResolver.kt:391— `configureUsbAudioClock` 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.
Fat interface: MicaDatabase (16 abstract methods) app/src/main/java/com/mica/music/data/local/MicaDatabase.kt:34— `MicaDatabase` declares 16 abstract methods: `songDao`, `songLyricsDao`, `libraryMetaDao`, `libraryStateDao`, `librarySyncStateDao`, `libraryRetryItemDao`, `libraryFollowupOutboxDao`, `libraryMembershipEvidenceDao`, `libraryUserExclusionDao`, `browseGroupDao`, `playlistDao`, `songLyricsOffsetDao`, `remoteSourceDao`, `remoteTrackDao`, `remoteSelectedTrackDao`, `remoteSmbScopeDao`. 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: PlaylistDao (21 abstract methods) app/src/main/java/com/mica/music/data/local/PlaylistDao.kt:56— `PlaylistDao` declares 21 abstract methods: `ensureState`, `getRevision`, `incrementRevision`, `getPlaylists`, `getSongs`, `upsertPlaylist`, `updatePlaylist`, `insertSongs`, `deleteSongs`, `deletePlaylist`, `deleteAll`, `deleteSong`, `getSongPositions`, `getPlaylistIdsContainingAny`, `getSongsForPlaylist`, `clearCoverSong`, `clearCoverSongs`, `shiftSongsLeft`, `shiftSongsRight`, `updateSongPosition`, `closePositionGap`. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D20 · ADR Quality· ADR has no Context section · ×1
ADR has no Context section docs/adr/0004-usb-exclusive-hybrid.md:6— docs/adr/0004-usb-exclusive-hybrid.md has no Context section (a heading such as `## Context`, or the MADR equivalent). A decision record states the context that forced it, the decision and its consequences, so a reader can tell later whether it still holds.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion app/build.gradle.kts:1— `app` (135235 LoC, 2427 module-visible types across 52 directories) overshoots its size bounds. 1 of 5 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 6.0/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
DM2 · Strongly-typed ids· Primitive id on a domain type · ×1
Primitive id on a domain type: Mutation.songId app/src/main/java/com/mica/music/data/PlaybackStatisticsRepository.kt:115— `Mutation.songId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
No SAST REDACTED:4— 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 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
No dependency-update automation build.gradle.kts:5— `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`.
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/2 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.
Silent fallback default on parse failure app/src/main/java/com/mica/music/data/ReleaseDate.kt:15— `canonicalFullDate` answers `""` when `DateTimeParseException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. 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.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
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 39 file(s) — `app/src/debug/java/com/mica/music/media/HybridQaPlaybackReceiver.kt`, `app/src/debug/java/com/mica/music/media/usbprototype/UsbPrototypeGenerationGate.kt`, `app/src/main/java/com/mica/music/LibraryFollowupConsumer.kt`, `app/src/main/java/com/mica/music/MicaApp.kt`, `app/src/main/java/com/mica/music/data/PlaybackSongResolver.kt`, … (+34 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
0
—
Run 01a1e7d3-2e83-7726-b866-6b96d5177027 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 30 · Warnings: 906 · Recommendations: 68 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 04:45 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.