Public report of deckerst/aves, published 23 October 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.10.5). Watchdog 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, 23 October 2026, 14:30 UTC · Survey ID cd_751fbaab7dcb4632ba4703503b00b99a
deckerst/aves
Measured 23 October 2026, 14:26 UTC, at code version 8866156
Regression: 1 dimension fell since the last survey
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Down 1 since the last survey
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: 128,319 lines of product code in 20 projects, tests not counted · Estimated rebuild effort: about 0.9 person-years · Weakest lens: Security and Compliance, 54
Findings by how serious they are
75 critical682 serious36 minor
13 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks 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
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
23 October 2026, 14:26 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 Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works 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 ▸
61of 64 dimensions measured by tools. The other 3 are advisory notes from an AI model, which explain the code but don't count towards the score.
776of 793 findings point to an exact file and line, so you can open each one in the code. The other 17 concern the repository as a whole, such as missing documentation.
64dimensions across 7 lenses, read from 128,319 lines of product code in 20 projects.
deckerst/aves scores 58 out of 100 and is rated Adequate, while five of its seven lenses score higher still: Domain Modelling at 100 and Architecture at 95, both rated Exemplary, Code Health at 80, rated Strong, and Production Readiness at 64 and Performance at 61, both rated Adequate.
The score is lower than those five because the weakest lens counts most, and here that is Security and Compliance, which scores 54 and is rated Adequate. Its Secrets (history) dimension scores 0 out of 10, and until that reaches 4, Security and Compliance can't be rated higher than Adequate. The first actions are to resolve the 1 No ADRs found finding(s) in ADR Quality and to resolve the 4 Leaked secret finding(s) in REDACTED Scanning, and if Security and Compliance rose to 70, the score would rise from 58 to about 61.
75 findings are critical: 61 in Secrets (history), eight in Change Coupling, four in REDACTED Scanning and two in Static Analysis (SAST).
Watchdog couldn't measure 12 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 128,319 lines, which would take an estimated 0.9 person-years, around €140,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.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 39 findings
These 39 critical or serious findings were in the previous survey, on 9 October 2026, and are gone from this one.
€46,000 to €230,000, for 759 to 2,408 hours of work, about 0.9 person-years for 1 to 2 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 58. 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: 128,319 lines of product code
How the estimate is made: Watchdog prices 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 No ADRs found finding(s) in ADR Quality.
Raises the score by about 4 points · Low effort · ADR Quality
2
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2).
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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 €140,000 to build again, about 0.9 person-years of work. Its weakest lens is Security and Compliance, at 54 (Adequate). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Resolve the 1 No ADRs found finding(s) in ADR Quality. Of all the actions in this report, it raises the score most for the work it takes: about 4 points for low effort, because it clears the 1 ADR Quality 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 7.3 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 2% to 5% on every change. The history of the code shows how much it changes: about 33,215 lines over the last 90 days, which is about 134,705 lines a year. At that pace, the extra work comes to an estimated 6.7 to 44.9 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's 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; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.
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.
106 modules, with 55 dependencies between them. 3 loops run through 7 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 66 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.
deckers.thibault.aves.channel.streams.platformtodart uses deckers.thibault.aves.channel.streams, so a change to deckers.thibault.aves.channel.streams can break deckers.thibault.aves.channel.streams.platformtodart, while a change to deckers.thibault.aves.channel.streams.platformtodart can't break deckers.thibault.aves.channel.streams.
Position
Below the diagonal: deckers.thibault.aves.channel.streams.platformtodart uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.decoding uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.decoding, while a change to deckers.thibault.aves.decoding can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.decoding uses a module listed above it, which is the healthy direction.
11→27 deckers.thibault.aves.decoding uses deckers.thibault.aves.channel.streams.darttoplatformpart of a loop✕
Connections
4 pairs of types, where a type in deckers.thibault.aves.decoding uses a type in deckers.thibault.aves.channel.streams.darttoplatform.
deckers.thibault.aves.decoding uses deckers.thibault.aves.channel.streams.darttoplatform, so a change to deckers.thibault.aves.channel.streams.darttoplatform can break deckers.thibault.aves.decoding, while a change to deckers.thibault.aves.decoding can't break deckers.thibault.aves.channel.streams.darttoplatform.
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.
deckers.thibault.aves.glide uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.glide, while a change to deckers.thibault.aves.glide can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.glide uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.AvesAppGlideModule uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.glide.AvesAppGlideModule, while a change to deckers.thibault.aves.glide.AvesAppGlideModule can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.glide.AvesAppGlideModule uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.VideoThumbnailFetcher uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.glide.VideoThumbnailFetcher, while a change to deckers.thibault.aves.glide.VideoThumbnailFetcher can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.glide.VideoThumbnailFetcher uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.metadata uses deckers.thibault.aves.metadata.metadataextractor.mpf, so a change to deckers.thibault.aves.metadata.metadataextractor.mpf can break deckers.thibault.aves.metadata, while a change to deckers.thibault.aves.metadata can't break deckers.thibault.aves.metadata.metadataextractor.mpf.
Position
Below the diagonal: deckers.thibault.aves.metadata uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.metadata uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.metadata, while a change to deckers.thibault.aves.metadata can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.metadata uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.metadata.xmp uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.metadata.xmp, while a change to deckers.thibault.aves.metadata.xmp can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.metadata.xmp uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.model.ExifOrientationOp uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.model.ExifOrientationOp, while a change to deckers.thibault.aves.model.ExifOrientationOp can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.model.ExifOrientationOp uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.model.NameConflictStrategy uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.model.NameConflictStrategy, while a change to deckers.thibault.aves.model.NameConflictStrategy can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.model.NameConflictStrategy uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.model.VideoThumbnailMethod uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.model.VideoThumbnailMethod, while a change to deckers.thibault.aves.model.VideoThumbnailMethod can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.model.VideoThumbnailMethod uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.model.provider uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.model.provider, while a change to deckers.thibault.aves.model.provider can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.model.provider uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.model.provider uses deckers.thibault.aves.model.provider.ImageProvider, so a change to deckers.thibault.aves.model.provider.ImageProvider can break deckers.thibault.aves.model.provider, while a change to deckers.thibault.aves.model.provider can't break deckers.thibault.aves.model.provider.ImageProvider.
Position
Below the diagonal: deckers.thibault.aves.model.provider uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.storage.apis uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.storage.apis, while a change to deckers.thibault.aves.storage.apis can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.storage.apis uses a module listed above it, which is the healthy direction.
21→34 deckers.thibault.aves.storage.apis uses deckers.thibault.aves.storagepart of a loop✕
Connections
1 pair of types, where a type in deckers.thibault.aves.storage.apis uses a type in deckers.thibault.aves.storage.
deckers.thibault.aves.storage.apis uses deckers.thibault.aves.storage, so a change to deckers.thibault.aves.storage can break deckers.thibault.aves.storage.apis, while a change to deckers.thibault.aves.storage.apis can't break deckers.thibault.aves.storage.
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.
deckers.thibault.aves.utils uses deckers.thibault.aves.utils.BitmapConversion, so a change to deckers.thibault.aves.utils.BitmapConversion can break deckers.thibault.aves.utils, while a change to deckers.thibault.aves.utils can't break deckers.thibault.aves.utils.BitmapConversion.
Position
Below the diagonal: deckers.thibault.aves.utils uses a module listed above it, which is the healthy direction.
repository.services uses repository.image_providers, so a change to repository.image_providers can break repository.services, while a change to repository.services can't break repository.image_providers.
Position
Below the diagonal: repository.services uses a module listed above it, which is the healthy direction.
repository.services uses repository.locale, so a change to repository.locale can break repository.services, while a change to repository.services can't break repository.locale.
Position
Below the diagonal: repository.services uses a module listed above it, which is the healthy direction.
repository.services uses repository.src, so a change to repository.src can break repository.services, while a change to repository.services can't break repository.src.
Position
Below the diagonal: repository.services uses a module listed above it, which is the healthy direction.
24→38 repository.services uses repository.modelpart of a loop✕
Connections
16 pairs of types, where a type in repository.services uses a type in repository.model.
repository.services uses repository.model, so a change to repository.model can break repository.services, while a change to repository.services can't break repository.model.
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.
repository.utils uses repository.src, so a change to repository.src can break repository.utils, while a change to repository.utils can't break repository.src.
Position
Below the diagonal: repository.utils uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.calls uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.channel.calls, while a change to deckers.thibault.aves.channel.calls can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.channel.calls uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.calls uses deckers.thibault.aves.model.provider.ImageProvider, so a change to deckers.thibault.aves.model.provider.ImageProvider can break deckers.thibault.aves.channel.calls, while a change to deckers.thibault.aves.channel.calls can't break deckers.thibault.aves.model.provider.ImageProvider.
Position
Below the diagonal: deckers.thibault.aves.channel.calls uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.calls uses deckers.thibault.aves.channel.streams.platformtodart, so a change to deckers.thibault.aves.channel.streams.platformtodart can break deckers.thibault.aves.channel.calls, while a change to deckers.thibault.aves.channel.calls can't break deckers.thibault.aves.channel.streams.platformtodart.
Position
Below the diagonal: deckers.thibault.aves.channel.calls uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.streams.darttoplatform uses deckers.thibault.aves.channel.streams, so a change to deckers.thibault.aves.channel.streams can break deckers.thibault.aves.channel.streams.darttoplatform, while a change to deckers.thibault.aves.channel.streams.darttoplatform can't break deckers.thibault.aves.channel.streams.
Position
Below the diagonal: deckers.thibault.aves.channel.streams.darttoplatform uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.streams.darttoplatform uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.channel.streams.darttoplatform, while a change to deckers.thibault.aves.channel.streams.darttoplatform can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.channel.streams.darttoplatform uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.channel.streams.darttoplatform uses deckers.thibault.aves.decoding, so a change to deckers.thibault.aves.decoding can break deckers.thibault.aves.channel.streams.darttoplatform, while a change to deckers.thibault.aves.channel.streams.darttoplatform can't break deckers.thibault.aves.decoding.
Position
Below the diagonal: deckers.thibault.aves.channel.streams.darttoplatform uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.MultiPageThumbnailLoader uses deckers.thibault.aves.glide, so a change to deckers.thibault.aves.glide can break deckers.thibault.aves.glide.MultiPageThumbnailLoader, while a change to deckers.thibault.aves.glide.MultiPageThumbnailLoader can't break deckers.thibault.aves.glide.
Position
Below the diagonal: deckers.thibault.aves.glide.MultiPageThumbnailLoader uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.SvgLoader uses deckers.thibault.aves.glide, so a change to deckers.thibault.aves.glide can break deckers.thibault.aves.glide.SvgLoader, while a change to deckers.thibault.aves.glide.SvgLoader can't break deckers.thibault.aves.glide.
Position
Below the diagonal: deckers.thibault.aves.glide.SvgLoader uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.TiffLoader uses deckers.thibault.aves.glide, so a change to deckers.thibault.aves.glide can break deckers.thibault.aves.glide.TiffLoader, while a change to deckers.thibault.aves.glide.TiffLoader can't break deckers.thibault.aves.glide.
Position
Below the diagonal: deckers.thibault.aves.glide.TiffLoader uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.glide.VideoThumbnailLoader uses deckers.thibault.aves.glide, so a change to deckers.thibault.aves.glide can break deckers.thibault.aves.glide.VideoThumbnailLoader, while a change to deckers.thibault.aves.glide.VideoThumbnailLoader can't break deckers.thibault.aves.glide.
Position
Below the diagonal: deckers.thibault.aves.glide.VideoThumbnailLoader uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.metadata.DirType uses deckers.thibault.aves.metadata, so a change to deckers.thibault.aves.metadata can break deckers.thibault.aves.metadata.DirType, while a change to deckers.thibault.aves.metadata.DirType can't break deckers.thibault.aves.metadata.
Position
Below the diagonal: deckers.thibault.aves.metadata.DirType uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.metadata.TagFormat uses deckers.thibault.aves.metadata, so a change to deckers.thibault.aves.metadata can break deckers.thibault.aves.metadata.TagFormat, while a change to deckers.thibault.aves.metadata.TagFormat can't break deckers.thibault.aves.metadata.
Position
Below the diagonal: deckers.thibault.aves.metadata.TagFormat uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.storage uses deckers.thibault.aves.model, so a change to deckers.thibault.aves.model can break deckers.thibault.aves.storage, while a change to deckers.thibault.aves.storage can't break deckers.thibault.aves.model.
Position
Below the diagonal: deckers.thibault.aves.storage uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.storage uses deckers.thibault.aves.storage.apis, so a change to deckers.thibault.aves.storage.apis can break deckers.thibault.aves.storage, while a change to deckers.thibault.aves.storage can't break deckers.thibault.aves.storage.apis.
Position
Below the diagonal: deckers.thibault.aves.storage uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.storage.apis.StorageApi uses deckers.thibault.aves.storage.apis, so a change to deckers.thibault.aves.storage.apis can break deckers.thibault.aves.storage.apis.StorageApi, while a change to deckers.thibault.aves.storage.apis.StorageApi can't break deckers.thibault.aves.storage.apis.
Position
Below the diagonal: deckers.thibault.aves.storage.apis.StorageApi uses a module listed above it, which is the healthy direction.
repository.widgets uses repository.image_providers, so a change to repository.image_providers can break repository.widgets, while a change to repository.widgets can't break repository.image_providers.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
repository.widgets uses repository.locale, so a change to repository.locale can break repository.widgets, while a change to repository.widgets can't break repository.locale.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
138 pairs of types, where a type in repository.widgets uses a type in repository.src. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
repository.widgets uses repository.src, so a change to repository.src can break repository.widgets, while a change to repository.widgets can't break repository.src.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
repository.widgets uses repository, so a change to repository can break repository.widgets, while a change to repository.widgets can't break repository.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
repository.widgets uses repository.services, so a change to repository.services can break repository.widgets, while a change to repository.widgets can't break repository.services.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
repository.widgets uses repository.utils, so a change to repository.utils can break repository.widgets, while a change to repository.widgets can't break repository.utils.
Position
Below the diagonal: repository.widgets uses a module listed above it, which is the healthy direction.
36→38 repository.widgets uses repository.modelpart of a loop✕
Connections
181 pairs of types, where a type in repository.widgets uses a type in repository.model. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
repository.widgets uses repository.model, so a change to repository.model can break repository.widgets, while a change to repository.widgets can't break repository.model.
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.
deckers.thibault.aves uses deckers.thibault.aves.channel.streams.platformtodart, so a change to deckers.thibault.aves.channel.streams.platformtodart can break deckers.thibault.aves, while a change to deckers.thibault.aves can't break deckers.thibault.aves.channel.streams.platformtodart.
Position
Below the diagonal: deckers.thibault.aves uses a module listed above it, which is the healthy direction.
deckers.thibault.aves uses deckers.thibault.aves.channel.calls, so a change to deckers.thibault.aves.channel.calls can break deckers.thibault.aves, while a change to deckers.thibault.aves can't break deckers.thibault.aves.channel.calls.
Position
Below the diagonal: deckers.thibault.aves uses a module listed above it, which is the healthy direction.
repository.model uses repository.locale, so a change to repository.locale can break repository.model, while a change to repository.model can't break repository.locale.
Position
Below the diagonal: repository.model uses a module listed above it, which is the healthy direction.
47 pairs of types, where a type in repository.model uses a type in repository.src. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
repository.model uses repository.src, so a change to repository.src can break repository.model, while a change to repository.model can't break repository.src.
Position
Below the diagonal: repository.model uses a module listed above it, which is the healthy direction.
repository.model uses repository.utils, so a change to repository.utils can break repository.model, while a change to repository.model can't break repository.utils.
Position
Below the diagonal: repository.model uses a module listed above it, which is the healthy direction.
repository.model uses repository.widgets, so a change to repository.widgets can break repository.model, while a change to repository.model can't break repository.widgets.
Position
Below the diagonal: repository.model uses a module listed above it, which is the healthy direction.
repository.theme uses repository.widgets, so a change to repository.widgets can break repository.theme, while a change to repository.theme can't break repository.widgets.
Position
Below the diagonal: repository.theme uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.MainActivity uses deckers.thibault.aves.channel.streams.platformtodart, so a change to deckers.thibault.aves.channel.streams.platformtodart can break deckers.thibault.aves.MainActivity, while a change to deckers.thibault.aves.MainActivity can't break deckers.thibault.aves.channel.streams.platformtodart.
Position
Below the diagonal: deckers.thibault.aves.MainActivity uses a module listed above it, which is the healthy direction.
deckers.thibault.aves.MainActivity uses deckers.thibault.aves, so a change to deckers.thibault.aves can break deckers.thibault.aves.MainActivity, while a change to deckers.thibault.aves.MainActivity can't break deckers.thibault.aves.
Position
Below the diagonal: deckers.thibault.aves.MainActivity 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
A07:2025 — Authentication Failures
66
High / Critical
A05:2025 — Injection
5
High / Critical
A03:2025 — Software Supply Chain Failures
3
Medium
Roadmap
Begin by documenting significant design decisions in the docs/adr folder to establish a clear architectural record and resolve the missing ADR findings. Simultaneously, secure the server by enforcing TLS and HSTS headers, and immediately remove the 60 historical secrets from version control, prioritizing shader files. Finally, complete the README by filling in the truncated sections to ensure comprehensive project documentation.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Secure the server's transport: serve TLS itself (`HttpServer.bindSecure(…, context)`, or `shelf_io.serve(…, securityContext: context)`), or run it behind a TLS-terminating proxy and check `X-Forwarded-Proto`; send `Strict-Transport-Security` once it is HTTPS-only. A server only this device needs to reach should bind `InternetAddress.loopbackIPv4` instead.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
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 — 75
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 — 682
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 — 36
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
Watchdog 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. 61 of 64 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 64 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, 776 of 793 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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 — Watchdog 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 (.dart) 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. To have real coverage read, produce a coverage report in a standard format (lcov — `flutter test --coverage` (or `dart test --coverage=coverage` then `dart run coverage:format_coverage --lcov`)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `flutter test --coverage` (or `dart test --coverage=coverage` then `dart run coverage:format_coverage --lcov`)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog 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 (.dart) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. 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 — Watchdog 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 — 5 Maven/Gradle manifest(s) were read, stating a version for 27 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository declares a Gradle build (build.gradle/build.gradle.kts), but the licence verdict published here was taken over its pub package dependencies. Nothing was read about its Gradle dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
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 (15 contributor(s) across 4500 commit(s) sampled, automation and bot accounts excluded). One of them holds 94% of the history; the other 14 hold 0.4% 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.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (android/exifinterface/build.gradle.kts), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D27 Navigability — not measured this run — Watchdog 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AnalysisHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt`, … (+8 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.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog 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. Subject: a native UI project (pubspec.yaml). The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C1 Data Protection — not measured this run — Watchdog 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 personal data 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 personal data controls.
C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — Watchdog 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 audit 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 audit controls.
C4 Data Retention — not measured this run — Watchdog 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 retention 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 retention controls.
C5 Data-Subject Rights — not measured this run — Watchdog 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 data-subject rights 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 data-subject rights controls.
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.
X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
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.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
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.
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
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.
80 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was VideoMetadataFormatter.formatInfo at 134. A further 33 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 GeoTiffDirectory.getProjCSTypeDescription at 998 — they are counted neither in the figure above nor in this dimension's score. 14 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: lib/widgets/viewer/info/metadata/geotiff.dart (GeoTiffDirectory.getProjCSTypeDescription at 998), lib/ref/metadata/exif.dart (Exif.getCompressionDescription at 43), lib/ref/locale/usage.dart (LocaleUsage.shouldUseNativeDigits at 32), lib/widgets/viewer/info/metadata/xmp_ns/exif.dart (XmpExifNamespace.formatValue at 31), lib/model/filters/filters.dart (CollectionFilter._fromMap at 23), and 9 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.
+ 75 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 7 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with VideoMetadataFormatter.formatInfo (cyclomatic 134), Settings.import (cyclomatic 131), AssParser.parse (cyclomatic 94). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 7 together lifts Cyclomatic Complexity from 5.7 to about 6.5/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
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.
+ 130 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 VideoMetadataFormatter.formatInfo (cognitive 195), MetadataFetchHandler.getAllMetadata (cognitive 176), MetadataFetchHandler.getCatalogMetadataByMetadataExtractor (cognitive 131). — 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 5.3 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.1 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 36 MethodTooLong finding(s) in God Classes — start with geotiff.dart (4), ImageProvider.kt (3), MetadataFetchHandler.kt (2). — One of this dimension's main actionable groups (36 warning-level).
Resolve the 19 TooManyMethods finding(s) in God Classes — start with controller_video.dart (3), derived_material_localization.dart, db_sqflite.dart. — One of this dimension's main actionable groups (19 warning-level).
Resolve the 14 ClassTooLong finding(s) in God Classes — start with geotiff.dart, ImageProvider.kt, MetadataFetchHandler.kt. — One of this dimension's main actionable groups (14 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
185 duplicated block group(s) detected. A further 12 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
+ 65 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 21 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with hijri.dart (5), collection_source.dart, app_bar.dart. — One of this dimension's main actionable groups (21 warning-level).
Resolve the 18 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with hijri.dart (3), create_group_dialog.dart (2), device_service.dart. — One of this dimension's main actionable groups (18 warning-level).
Resolve the 15 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with app_service.dart, device_service.dart, embedded_data_service.dart. — One of this dimension's main actionable groups (15 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling8.0 / 10Strong✓ 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.
20 production modules (Gradle+pub), 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; 5 module(s) off the main sequence, with abstractness counted on 18 of the 20 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
Off the main sequence: aves_screen_state (pub) · ×5
What to do
Resolve the 5 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (5 warning-level).
Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 41 Low cohesion finding(s) in Cohesion (LCOM4) — start with controller_video.dart (2), fixed_extent_grid_row.dart, variable_extent_grid_row.dart. — One of this dimension's main actionable groups (41 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 223 resolved pub package(s) use a banned license. Licences were read from pub.dev's analysis of each package's licence file, over every package this repository's pubspec.lock resolves from pub.dev, direct and transitive, at the locked version; the 3 package(s) the lock marks direct dev are excluded, and SDK, path and git packages have no registry release to read. pub.dev analyses only recent releases, so for 6 package(s) locked at an older version the licence read is that of the package's latest analysed release, not of the locked one. 1 of them carry no licence pub.dev recognises; that is missing data, not a violation, and none of them is charged. ★ COVERAGE OF THIS VERDICT: it grades this repository's pub package dependencies and nothing else. The repository also declares a Gradle build (build.gradle/build.gradle.kts), and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Resolve the 27 Hotspot finding(s) in Churn × Complexity Hotspots — start with settings.dart, entry_set_action_delegate.dart, MetadataFetchHandler.kt. — One of this dimension's main actionable groups (27 warning-level).
Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with aves_list_subtitle.dart. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
69 deducted task-comment markers across 128319 LoC (0.1/KLoC) → score 9.9. 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.
Resolve the 61 TodoComment finding(s) in Explicit Debt — start with collection.dart (8), controller_video.dart (8), media_store_source.dart (3). — One of this dimension's main actionable groups (61 warning-level).
Resolve the 8 HackComment finding(s) in Explicit Debt — start with diff_match.dart (8). — One of this dimension's main actionable groups (8 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The repository's single README is a well-structured root-level document that describes Aves (an Android/Flutter gallery and metadata explorer app) with strong branding, links to Google Play, IzzyOnDroid, Obtainium, F-Droid, GitHub releases, a version comparison wiki, and an overview of features such as multi-page TIFFs, panorama/photo-sphere detection, navigation/search, GeoTIFF support, and the intent-to-be-contributing flow. It also lists many runnable scripts (e.g., ./flutterw run -t lib/main_play.dart --flavor play) and a project setup section, but it is clipped mid-sentence inside the Features heading, so further sections like Changelog, Permissions, Contributing, Issues, Code, Translations, Donations, and Project Setup are present in the outline and must not be flagged as missing. The visible content is clear and complete for an overview document; the unshown outline sections do not carry penalty.
What to do
Improve Documentation Quality — currently 7.0/10. — The repository's single README is a well-structured root-level document that describes Aves (an Android/Flutter gallery and metadata explorer app) with strong branding, links to Google Play, IzzyOnDroid, Obtainium, F-Droid, GitHub releases, a version comparison wiki, and an overview of features such as multi-page TIFFs, panorama/photo-sphere detection, navigation/search, GeoTIFF support, and the intent-to-be-contributing flow. It also lists many runnable scripts (e.g., ./flutterw run -t lib/main_play.dart --flavor play) and a project setup section, but it is clipped mid-sentence inside the Features heading, so further sections like Changelog, Permissions, Contributing, Issues, Code, Translations, Donations, and Project Setup are present in the outline and must not be flagged as missing. The visible content is clear and complete for an overview document; the unshown outline sections do not carry penalty.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
2 of 19 build units (Gradle, pub) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
104 finding(s): 0 critical, 104 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
REDACTED
What to do
Resolve the 60 REDACTED finding(s) in Secrets (history) — start with REDACTED (8), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (60 issue-level).
Resolve the 1 High secret finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
5 finding(s): 0 critical, 2 high, 3 medium, 0 low. semgrep hit a parse error in 1 file(s) — `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AnalysisHandler.kt` (line 27, line 28) — 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. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
What to do
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3). — One of this dimension's main actionable groups (3 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).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
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 528 of the 990 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 Boundary-crossing change coupling finding(s) in Change Coupling — start with entry_set.dart (2), media_store_source.dart (2), geo_map.dart. — One of this dimension's main actionable groups (8 issue-level).
Resolve the 9 Change coupling finding(s) in Change Coupling — start with albums_page.dart, entry_viewer_stack.dart, filter_grid_page.dart. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 2 Change-coupling hub finding(s) in Change Coupling — start with MetadataFetchHandler.kt, entry_set_action_delegate.dart. — One of this dimension's main actionable groups (2 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 any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
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 5 platform declaration(s) and 27 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 — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.
Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.
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.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
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 read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Other · Domain Modelling — Whether an entity protects its own invariants — a class whose identity is derived from its fields (value equality) but whose fields are publicly mutable bypasses that invariant. Encapsulated state keeps identity-bearing fields immutable.
Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.
Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.
Other · Code Health — Unreviewed-generation residue in this repository's Dart: methods whose whole body still throws UnimplementedError or a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Dart: methods that only throw UnimplementedError or a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 4 of 4 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
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.
What to do
Dependabot is configured but does not watch `gradle`, `gitsubmodule` — add those `package-ecosystem` entries to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
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.
The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.
What to do
Raise allocation-aware density on the hot paths — currently 72 use(s) across 142,890 production line(s) (~0.5/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Dart: on hot paths, hold numbers in dart:typed_data lists (Int32List, Float64List …) instead of boxed List<int>/List<double>, read through views (sublistView, buffer.asInt32List, asByteData) instead of copying, make lists that never grow growable: false, compute in the SIMD types (Float32x4List …), and build bytes with BytesBuilder(copy: false).
Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
Kotlin: on hot paths, use primitive arrays (IntArray, LongArray …) and @JvmInline value classes instead of boxed values, primitive collections (androidx.collection, fastutil) instead of boxed ones, and presize collections and StringBuilders.
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 the language 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.
`doExport` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — lib/widgets/common/action_mixins/entry_storage.dart:45
`doQuickMove` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — lib/widgets/common/action_mixins/entry_storage.dart:191
`_buildAlbumPath` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — lib/widgets/dialogs/filter_editors/create_stored_album_dialog.dart:163
What to do
Dart: await the async dart:io API (readAsString, writeAsString, Process.run, Future.delayed) instead of the *Sync variant or sleep(), or move heavy synchronous work to another isolate with Isolate.run.
Other · Security — Read from this repository's Dart source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS certificate validation — facts about code that hold whether or not it serves anything itself. The TLS protocol version is not read: `dart:io` leaves the protocol floor to the platform's TLS library and has no switch that admits an obsolete version. This repository serves HTTP itself (pubspec.yaml:148 — depends on `shelf`), so its Dart source was also read for the server controls: TLS served or HSTS set, security response headers, cookie flags and inbound validation — each credited where its Dart spelling appears in production source, not proven on every route.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
This repository runs an HTTP server that is not bound to the loopback interface alone — or binds it at an address its source does not spell out — and nothing in its Dart source secures the transport: no `HttpServer.bindSecure` or `securityContext:`, no `Strict-Transport-Security` header, no `X-Forwarded-Proto` read from a TLS-terminating proxy — so its traffic may cross the network in clear text. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is set on a response this repository's Dart server sends — defense in depth, even when a proxy could set them. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
No handler of this repository's Dart server answers 400, 413 or 422 (`Response.badRequest`, `HttpStatus.badRequest`, `statusCode = 400`) and no validation package (luthor, acanthis, ez_validator, json_schema, …) is imported — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
What to do
Secure the server's transport: serve TLS itself (`HttpServer.bindSecure(…, context)`, or `shelf_io.serve(…, securityContext: context)`), or run it behind a TLS-terminating proxy and check `X-Forwarded-Proto`; send `Strict-Transport-Security` once it is HTTPS-only. A server only this device needs to reach should bind `InternetAddress.loopbackIPv4` instead.
Set security response headers on what the server sends — `response.headers.set('X-Content-Type-Options', 'nosniff')` in a `dart:io` handler, or a shelf middleware that adds `Content-Security-Policy`, `X-Content-Type-Options` and a frame policy to every `Response`.
Validate what the server reads from a request — path, query, headers, body size and shape — and answer what fails with 400 (413 for an oversized body) before a handler acts on it, so a client and a proxy can tell a refusal from a success.
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.
`forEach` takes a `void` callback and never awaits what it returns, so the Future each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled — it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone's error handler in Flutter. Iterate with `for (final item in items) { await … }` when the work must run in order, or `await Future.wait(items.map((item) async { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape. (×2) — lib/widgets/debug/os_storage.dart:22, plugins/aves_map/lib/src/marker/generator.dart:47
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · 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.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader3.5 / 10Weak✓ Tool-verified
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
`jpegLength` is read from the bytes being parsed at line 6049 (`getInt`), then used to size a `new byte[]` at line 6052 — and nowhere in its scope is `jpegLength` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 32-bit length asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `jpegLength` against the bytes actually remaining and a maximum the format allows before allocating. — android/exifinterface/src/main/java/androidx/exifinterface/media/ExifInterfaceFork.java:6052
What to do
Each finding names the read that takes the length from the input and the site that spends it, and states that the value is never compared in between. Confirm from the two, then bound the length against the remaining stream before using it.
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.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
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.
`Query` carries a disposal duty — it declares its own release — and it creates `_enabledStreamController` itself (line 9, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_enabledStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_enabledStreamController.close();` in `dispose()` before `super.dispose()`. — lib/model/query.dart:9
`_CollectionPageState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_draggableScrollBarEventStreamController` itself (line 50, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_draggableScrollBarEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_draggableScrollBarEventStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/collection/collection_page.dart:50
`ChooserQuickButtonState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_moveUpdateStreamController` itself (line 30, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_moveUpdateStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_moveUpdateStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/common/action_controls/quick_choosers/common/button.dart:30
`TransformController` carries a disposal duty — it declares its own release — and it creates `_transformationStreamController` itself (line 23, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_transformationStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_transformationStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/editor/transform/controller.dart:23
`TransformController` carries a disposal duty — it declares its own release — and it creates `_activityStreamController` itself (line 27, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_activityStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_activityStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/editor/transform/controller.dart:27
`_ExplorerPageState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_draggableScrollBarEventStreamController` itself (line 47, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_draggableScrollBarEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_draggableScrollBarEventStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/explorer/explorer_page.dart:47
`MultiPageController` carries a disposal duty — it declares its own release — and it creates `_infoStreamController` itself (line 17, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_infoStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_infoStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/viewer/multipage/controller.dart:17
`_ViewerDetailOverlayState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_detailStreamController` itself (line 39, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_detailStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_detailStreamController.close();` in `dispose()` before `super.dispose()`. — lib/widgets/viewer/overlay/top/details/details.dart:39
`_EntryGoogleMapState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_markerBitmapReadyStreamController` itself (line 42, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_markerBitmapReadyStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_markerBitmapReadyStreamController.close();` in `dispose()` before `super.dispose()`. — plugins/aves_services_google/lib/src/map.dart:42
`ExoVideoController` carries a disposal duty — it declares its own release — and it creates `_eventStreamController` itself (line 15, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_eventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_eventStreamController.close();` in `dispose()` before `super.dispose()`. — plugins/aves_video_exo/lib/src/controller_video.dart:15
What to do
Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.
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 method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. 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 `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. 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 an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for … in` loop leaves the `List`, `Map` or `Set` it is walking alone — Dart's collection iterators check that the collection has not changed since the loop began, so a body that adds to or removes from the very collection the loop is walking (or the map whose `keys`, `values` or `entries` it walks) makes the next step throw `ConcurrentModificationError` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
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.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×11) — android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/StorageHandler.kt:102, android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:302, android/app/src/main/kotlin/deckers/thibault/aves/glide/VideoThumbnailGlideModule.kt:117, …
`catch (error)` 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. (×2) — lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:585, lib/widgets/viewer/debug/utils.dart:7
What to do
Swallowed exception (empty catch)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether Dart's sound null safety is on and is not undermined by null assertions — a package whose `environment: sdk:` lower bound is 2.12 or above is null safe, so `String` cannot hold null and `String?` must be checked before use, and each postfix `!` is a run-time `Null check operator used on a null value` the author has told the analyzer 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 — 1 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 — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit 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 audit 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.
C4 Data Retention — Not assessed: these retention 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 retention 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.
C5 Data-Subject Rights — Not assessed: these data-subject rights 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 data-subject rights 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.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 56 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.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. Dart isolates share no mutable memory, so no two requests write one object at the same instant.
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
AX6 Interface segregation — no public interfaces
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: these personal data 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 personal data 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.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D10 Test Quality — ~2336 lines of test source are present (.dart) 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 — no .dart test runner
D12 Dependency Hygiene — Not scored — 5 Maven/Gradle manifest(s) were read, stating a version for 27 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. 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 — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.dart), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 13 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.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
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.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
D9 Test Distribution — Test source is present (.dart) 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 its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
DM1 Aggregate boundaries — not scored for Dart: aggregate-vs-value-object classification cannot be told apart in source (every class-holding-class reads alike), and a child COLLECTION (legitimate membership) vs a single embedded aggregate is indistinguishable — reported as guidance rather than measured
DM2 Strongly-typed ids — no in-repo typed-id idiom — primitive-obsession recorded as advisory DM8, DM2 not gated
DM3 Integration-event coupling — not scored for Dart: a cross-package domain leak cannot be told apart in source from a legitimate shared-kernel package, and most repositories ship a single package — reported as guidance rather than measured
DM4 Rich vs anemic domain model — this Dart repository declares no domain-layer entity carrying stored data (every type is a typed-id wrapper, DTO/config, ORM row or presentation container), so DM4's rich-vs-anemic read has no population to be taken over
DM6 Domain ↔ infrastructure boundary — this Dart repository maps no type to a persistence framework (drift/floor/isar/objectbox/hive), so DM6's domain↔infrastructure fusion read has no population to be taken over
DM7 Repository granularity — not scored for Dart: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable — reported as guidance rather than measured
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, which this analysis does not build from source alone for this language. Reported as guidance rather than measured
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
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'.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Dart, 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 — no coverage report found on disk — produce a coverage report in a standard format (lcov — `flutter test --coverage` (or `dart test --coverage=coverage` then `dart run coverage:format_coverage --lcov`)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for classes extending benchmark_harness's `BenchmarkBase`, `AsyncBenchmarkBase` or `PerfBenchmarkBase` (directly or through a base of your own), `benchmark(…)` calls under the pub `benchmark` package, Flutter's `benchmarkWidgets`, `watchPerformance` or `traceAction` in a test importing flutter_test, integration_test or flutter_driver, or benchmark_harness, benchmark or web_benchmarks in a pubspec.yaml, 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.
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
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 Dart was read, and it logs through none: package:logging, package:logger, talker and dart:developer take one finished message and no template arguments or fields (as log4net does in C#), so an interpolated message there loses nothing the API could have kept. Sentry's structured logs (`Sentry.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.
X7 Silent fallback defaults — 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.
Boundary-crossing change coupling: entry_set.dart ↔ app_bar.dart lib/view/src/actions/entry_set.dart:1— `lib/view/src/actions/entry_set.dart` (context view) and `lib/widgets/collection/app_bar.dart` (context widgets) sit in DIFFERENT parts of the tree yet change together 81% of the time (21 of the 26 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are `a0572ffd` #2141 collection: copy to clipboard; `cab6b130` #1853 tv: replace FAB by app bar action; `1b43d1ca` #1987 collection: gpx export — run `git show` on any of them.
Boundary-crossing change coupling: entry_set.dart ↔ entry_set_action_delegate.dart lib/view/src/actions/entry_set.dart:1— `lib/view/src/actions/entry_set.dart` (context view) and `lib/widgets/collection/entry_set_action_delegate.dart` (context widgets) sit in DIFFERENT parts of the tree yet change together 77% of the time (20 of the 26 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 20 shared commits counted here, the most recent 3 are `a0572ffd` #2141 collection: copy to clipboard; `cab6b130` #1853 tv: replace FAB by app bar action; `1b43d1ca` #1987 collection: gpx export — run `git show` on any of them.
Boundary-crossing change coupling: geo_map.dart ↔ aves_services_platform.dart lib/widgets/common/map/geo_map.dart:1— `lib/widgets/common/map/geo_map.dart` (context widgets) and `plugins/aves_services_google/lib/aves_services_platform.dart` (context plugins) sit in DIFFERENT parts of the tree yet change together 60% of the time (9 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `0d64e024` map: track color gradient, style fixes; `a84f621a` map: show paths; `024d1db8` #2107 map : increased max zoom level for HOT/Watercolor, removed limi… — run `git show` on any of them.
Boundary-crossing change coupling: media_store_source.dart ↔ media_store_service.dart lib/model/source/media_store_source.dart:1— `lib/model/source/media_store_source.dart` (context model) and `lib/services/media/media_store_service.dart` (context services) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `ae11f225` handle missing volume when fetching media by generation; `5f26cfbb` #1427 increased precision of file modified date to milliseconds; `211f803a` source: disable analysis for widget, screen saver; disabling analysis… — run `git show` on any of them.
Boundary-crossing change coupling: entry.dart ↔ service_policy.dart lib/model/entry/entry.dart:1— `lib/model/entry/entry.dart` (context model) and `lib/services/common/service_policy.dart` (context services) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `b5fea82f` loader/completer review; `c34faa15` quick country reverse geolocation w/o play services (at that commit the files were still `lib/model/entry.dart` and `lib/services/service_policy.dart`); `ceed01f3` tiling (WIP) (at that commit the files were still `lib/model/image_entry.dart` and `lib/services/service_policy.dart`) — run `git show` on any of them.
Boundary-crossing change coupling: media_store_source.dart ↔ db.dart lib/model/source/media_store_source.dart:1— `lib/model/source/media_store_source.dart` (context model) and `lib/widgets/viewer/debug/db.dart` (context widgets) sit in DIFFERENT parts of the tree yet change together 56% of the time (9 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `6fd03836` #1836 fixed recovered items staying in bin forever; `30602538` #971 duplicate detection; `413794cb` #913 recover untracked vault items — run `git show` on any of them.
Boundary-crossing change coupling: images.dart ↔ media_fetch_service.dart lib/model/entry/extensions/images.dart:1— `lib/model/entry/extensions/images.dart` (context model) and `lib/services/media/media_fetch_service.dart` (context services) sit in DIFFERENT parts of the tree yet 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `60b753c5` #2313 fixed video cover following thumbnail preference, gapless cover…; `50e2929e` stream image bytes instead of custom fetch; `1fd3d77b` fetch encoded bytes for video cover — run `git show` on any of them.
Boundary-crossing change coupling: icons.dart ↔ enums.dart lib/theme/icons.dart:1— `lib/theme/icons.dart` (context theme) and `plugins/aves_model/lib/src/source/enums.dart` (context plugins) sit in DIFFERENT parts of the tree yet 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `eb9a7c8b` calendar view WIP; `a6c1fd52` #1554 Collection: sort by storage path; `bf987d63` #1109 collection: sort by duration — run `git show` on any of them.
TodoComment android/app/src/main/kotlin/deckers/thibault/aves/metadata/MultiPage.kt:44— // TODO TLAD more generic support, (e.g. 0x00000014 + `ftyp` + `qt `) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePngMetadataReader.kt:265— // TODO we currently ignore languageTagBytes and translatedKeywordBytes — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:392— // TODO TLAD use `GeoTiffDirectory` from the Java version of `metadata-extractor` when available — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:497— // TODO TLAD review `DocumentsContract.moveDocument` viability — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:727— // TODO TLAD only do this when the source is the file being replaced — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/db/db_sqflite.dart:223— // TODO TLAD [perf] split queries when `IN` parameter is large — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/db/db_sqflite.dart:737— // TODO TLAD [perf] split queries when `IN` parameter is large — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/entry/extensions/metadata_edition.dart:63— // TODO TLAD [date] DateTime.tryParse converts to UTC time, losing the time zone offset — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/filters/date.dart:19— // TODO TLAD [calendar] reflect calendar setting — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/media/geotiff.dart:190— // TODO TLAD [geotiff] default from parsing proj4 instead of meter? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:77— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:82— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:87— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:92— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:97— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:102— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:107— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/settings/modules/collection.dart:112— // TODO TLAD [layout per album] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/source/media_store_source.dart:237— // TODO TLAD [perf] perform DB ops with `newEntries` by chunks — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/source/media_store_source.dart:241— // TODO TLAD find duplication cause — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/model/source/media_store_source.dart:373— // TODO TLAD find duplication cause — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/ref/emoji_state_codes.dart:25— // TODO TLAD use flag assets from https://commons.wikimedia.org/wiki/Flags_of_states_of_Brazil
TodoComment lib/services/common/channel_isolate.dart:9— // TODO TLAD remove experiment if useless — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/utils/diff_match.dart:533— // TODO: Once Dart's performance stabilizes, determine if linear or binary — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment lib/utils/diff_match.dart:550— // TODO: Once Dart's performance stabilizes, determine if linear or binary — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Low cohesion: RenderFixedExtentGridRow (LCOM4 14) lib/widgets/common/grid/sections/layout/fixed_extent_grid_row.dart:42— RenderFixedExtentGridRow's methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: RenderVariableExtentGridRow (LCOM4 13) lib/widgets/common/grid/sections/layout/variable_extent_grid_row.dart:40— RenderVariableExtentGridRow's methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: AlbumChipSetActionDelegate (LCOM4 13) lib/widgets/filter_grids/common/action_delegates/album_set.dart:46— AlbumChipSetActionDelegate's methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ExoVideoController (LCOM4 12) plugins/aves_video_exo/lib/src/controller_video.dart:10— ExoVideoController's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: TagChipSetActionDelegate (LCOM4 12) lib/widgets/filter_grids/common/action_delegates/tag_set.dart:26— TagChipSetActionDelegate's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: AvesLocale (LCOM4 9) lib/locale/aves_locale.dart:16— AvesLocale's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: DiffMatchPatch (LCOM4 9) lib/utils/diff_match.dart:74— DiffMatchPatch's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: CountryChipSetActionDelegate (LCOM4 9) lib/widgets/filter_grids/common/action_delegates/country_set.dart:13— CountryChipSetActionDelegate's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _SnackbarDefaultsM3 (LCOM4 7) lib/widgets/common/action_mixins/overlay_snack_bar.dart:523— _SnackbarDefaultsM3's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: DerivedMaterialLocalizations (LCOM4 7) lib/widgets/common/basic/derived_material_localization.dart:71— DerivedMaterialLocalizations's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _InkResponseState (LCOM4 7) lib/widgets/common/basic/gestures/ink_well.dart:582— _InkResponseState's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: CoordinateFilter (LCOM4 6) lib/model/filters/coordinate.dart:13— CoordinateFilter's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Settings (LCOM4 6) lib/model/settings/settings.dart:47— Settings's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: CollectionSource (LCOM4 6) lib/model/source/collection_source.dart:76— CollectionSource's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: MpvVideoController (LCOM4 6) plugins/aves_video_mpv/lib/src/controller_video.dart:16— MpvVideoController's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: SearchPageRoute (LCOM4 6) lib/widgets/common/search/route.dart:11— SearchPageRoute's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: PlaceChipSetActionDelegate (LCOM4 6) lib/widgets/filter_grids/common/action_delegates/place_set.dart:8— PlaceChipSetActionDelegate's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: StateChipSetActionDelegate (LCOM4 6) lib/widgets/filter_grids/common/action_delegates/state_set.dart:8— StateChipSetActionDelegate's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Topology (LCOM4 5) lib/geo/topojson.dart:52— Topology's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: AvesEntry (LCOM4 5) lib/model/entry/entry.dart:21— AvesEntry's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: QueryFilter (LCOM4 5) lib/model/filters/query.dart:13— QueryFilter's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: PlatformMobileServices (LCOM4 4) plugins/aves_services_google/lib/aves_services_platform.dart:11— PlatformMobileServices's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: LiveAvesAvailability (LCOM4 4) lib/model/availability.dart:21— LiveAvesAvailability's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: GroupBaseFilter (LCOM4 4) lib/model/filters/container/group_base.dart:9— GroupBaseFilter's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: SetAndFilter (LCOM4 4) lib/model/filters/container/set_and.dart:11— SetAndFilter's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
MethodTooLong: GeoTiffDirectory.getProjCSTypeDescription lib/widgets/viewer/info/metadata/geotiff.dart:857— MethodTooLong — getProjCSTypeDescription runs 1998 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1898 over it, 19.98× 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: GeoTiffDirectory.getProjectionDescription lib/widgets/viewer/info/metadata/geotiff.dart:2858— MethodTooLong — getProjectionDescription runs 862 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 762 over it, 8.62× 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: GeoTiffDirectory.getGeographicTypeDescription lib/widgets/viewer/info/metadata/geotiff.dart:92— MethodTooLong — getGeographicTypeDescription runs 358 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 258 over it, 3.58× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: GeoTiffDirectory.getGeogGeodeticDatumDescription lib/widgets/viewer/info/metadata/geotiff.dart:453— MethodTooLong — getGeogGeodeticDatumDescription runs 320 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 220 over it, 3.20× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: VideoMetadataFormatter.formatInfo lib/model/media/video/metadata.dart:174— MethodTooLong — formatInfo runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SafePngMetadataReader.processChunk android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePngMetadataReader.kt:86— MethodTooLong — processChunk runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MetadataFetchHandler.getAllMetadata android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143— MethodTooLong — getAllMetadata runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.19× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: VideoSubtitles.build lib/widgets/viewer/visual/video/subtitle/subtitle.dart:35— MethodTooLong — build runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88× 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: _DebugAppDatabaseSectionState.build lib/widgets/debug/database.dart:50— MethodTooLong — build runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AssParser.parse lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:49— MethodTooLong — parse 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: MetadataFetchHandler.getCatalogMetadataByMetadataExtractor android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:639— MethodTooLong — getCatalogMetadataByMetadataExtractor runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Settings.import lib/model/settings/settings.dart:307— MethodTooLong — import 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: AGestureDetector.build lib/widgets/common/basic/gestures/gesture_detector.dart:829— MethodTooLong — build 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: _HomePageState._setup lib/widgets/home/home_page.dart:100— MethodTooLong — _setup runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59× 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: _AvesFilterChipState.build lib/widgets/common/identity/aves_filter_chip.dart:205— MethodTooLong — build runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51× 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: _QuickActionEditorBodyState.build lib/widgets/settings/common/quick_actions/editor_page.dart:172— MethodTooLong — build runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48× 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: _OverlaySnackBarState.build lib/widgets/common/action_mixins/overlay_snack_bar.dart:316— MethodTooLong — build runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× 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: _EntryPageViewState._buildVideoView lib/widgets/viewer/visual/entry_page_view.dart:199— MethodTooLong — _buildVideoView runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _CropperState._applyCropRatioToOutline lib/widgets/editor/transform/cropper.dart:613— MethodTooLong — _applyCropRatioToOutline runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× 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: EntryStorageMixin.doQuickMove lib/widgets/common/action_mixins/entry_storage.dart:191— MethodTooLong — doQuickMove runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _ConvertEntryDialogState._buildConvertContent lib/widgets/dialogs/convert_entry_dialog.dart:182— MethodTooLong — _buildConvertContent runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _DbTabState.build lib/widgets/viewer/debug/db.dart:54— MethodTooLong — build runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.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: LocalMediaDbUpgrader._upgradeFrom6 lib/model/db/db_sqflite_upgrade.dart:194— MethodTooLong — _upgradeFrom6 runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22× 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: _TagEditorPageState.build lib/widgets/dialogs/entry_editors/tag_editor_page.dart:69— MethodTooLong — build runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22× 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: _RenameEntrySetPageState.build lib/widgets/dialogs/entry_editors/rename_entry_set_page.dart:72— MethodTooLong — build runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
Hotspot: lib/model/settings/settings.dart lib/model/settings/settings.dart:307— lib/model/settings/settings.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in Settings.import at line 307. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/model/settings/settings.dart`: 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: lib/widgets/collection/entry_set_action_delegate.dart lib/widgets/collection/entry_set_action_delegate.dart:71— lib/widgets/collection/entry_set_action_delegate.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in EntrySetActionDelegate.isVisible at line 71. 1 of those changes was a fix/bug commit, and the other 9 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/collection/entry_set_action_delegate.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in MetadataFetchHandler.getAllMetadata at line 143. 2 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.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: lib/widgets/home/home_page.dart lib/widgets/home/home_page.dart:100— lib/widgets/home/home_page.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in _HomePageState._setup at line 100. 3 of those changes were fix/bug commits, and the other 5 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/home/home_page.dart`: 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: lib/widgets/collection/collection_grid.dart lib/widgets/collection/collection_grid.dart:691— lib/widgets/collection/collection_grid.dart changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in _CollectionScrollViewState._getScrollCrumbs at line 691. 4 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/collection/collection_grid.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1823— android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ImageProvider.editMetadata at line 1823. 2 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.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: lib/model/source/collection_lens.dart lib/model/source/collection_lens.dart:319— lib/model/source/collection_lens.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CollectionLens._applySection at line 319. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/model/source/collection_lens.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt:364— android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in MainActivity.extractIntentData at line 364. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.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: lib/widgets/common/identity/aves_filter_chip.dart lib/widgets/common/identity/aves_filter_chip.dart:205— lib/widgets/common/identity/aves_filter_chip.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in _AvesFilterChipState.build at line 205. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/common/identity/aves_filter_chip.dart`: 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: lib/widgets/common/action_mixins/entry_storage.dart lib/widgets/common/action_mixins/entry_storage.dart:191— lib/widgets/common/action_mixins/entry_storage.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in EntryStorageMixin.doQuickMove at line 191. 1 of those changes was a fix/bug commit, and the other 4 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/common/action_mixins/entry_storage.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt:126— android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in MediaMetadataRetrieverHelper.getSafeDescription at line 126. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.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: lib/widgets/debug/database.dart lib/widgets/debug/database.dart:50— lib/widgets/debug/database.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in _DebugAppDatabaseSectionState.build at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/debug/database.dart`: 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: lib/widgets/filter_grids/common/action_delegates/chip.dart lib/widgets/filter_grids/common/action_delegates/chip.dart:34— lib/widgets/filter_grids/common/action_delegates/chip.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ChipActionDelegate.isVisible at line 34. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/filter_grids/common/action_delegates/chip.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.kt:38— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in DeviceHandler.onMethodCall at line 38. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.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: lib/widgets/collection/draggable_thumb_label.dart lib/widgets/collection/draggable_thumb_label.dart:17— lib/widgets/collection/draggable_thumb_label.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CollectionDraggableThumbLabel.build at line 17. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/collection/draggable_thumb_label.dart`: 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: lib/widgets/viewer/controls/cast.dart lib/widgets/viewer/controls/cast.dart:86— lib/widgets/viewer/controls/cast.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CastMixin._toPlayType at line 86. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/viewer/controls/cast.dart`: 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: lib/widgets/common/grid/sections/calendar/section_layout_builder.dart lib/widgets/common/grid/sections/calendar/section_layout_builder.dart:64— lib/widgets/common/grid/sections/calendar/section_layout_builder.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CalendarSectionLayoutBuilder.buildSectionLayout at line 64. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/common/grid/sections/calendar/section_layout_builder.dart`: 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: lib/widgets/common/grid/scaling.dart lib/widgets/common/grid/scaling.dart:87— lib/widgets/common/grid/scaling.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in _GridScaleGestureDetectorState._onScaleStart at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/common/grid/scaling.dart`: 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: lib/model/media/panorama.dart lib/model/media/panorama.dart:17— lib/model/media/panorama.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PanoramaInfo.fromMap at line 17. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/model/media/panorama.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:270— android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Helper.getDatePlus at line 270. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.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: android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.kt android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.kt:21— android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in UnknownContentProvider.fetchSingle at line 21. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.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: lib/model/naming_pattern.dart lib/model/naming_pattern.dart:20— lib/model/naming_pattern.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NamingPattern.from at line 20. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/model/naming_pattern.dart`: 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: android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt:66— android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ThumbnailFetcher.fetch at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.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: lib/widgets/dialogs/convert_entry_dialog.dart lib/widgets/dialogs/convert_entry_dialog.dart:182— lib/widgets/dialogs/convert_entry_dialog.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in _ConvertEntryDialogState._buildConvertContent at line 182. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/dialogs/convert_entry_dialog.dart`: 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: lib/widgets/collection/grid/headers/any.dart lib/widgets/collection/grid/headers/any.dart:32— lib/widgets/collection/grid/headers/any.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in CollectionSectionHeader._buildHeader 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/collection/grid/headers/any.dart`: 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.
Duplicated block (6 lines × 2) lib/model/source/collection_source.dart:413— lib/model/source/collection_source.dart:413-418 | lib/model/source/collection_source.dart:455-460 — both copies are in the same file, so extract the 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) lib/widgets/collection/app_bar.dart:496— lib/widgets/collection/app_bar.dart:496-501 | lib/widgets/filter_grids/common/app_bar.dart:412-417 — before extracting anything, compare `lib/widgets/collection/app_bar.dart` and `lib/widgets/filter_grids/common/app_bar.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/widgets/common/grid/sections/layout/fixed_extent_sectioned_list_layout.dart:19— lib/widgets/common/grid/sections/layout/fixed_extent_sectioned_list_layout.dart:19-24 | lib/widgets/common/grid/sections/layout/variable_extent_sectioned_list_layout.dart:15-20 — 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) lib/widgets/common/identity/aves_logo.dart:68— lib/widgets/common/identity/aves_logo.dart:68-73 | lib/widgets/common/identity/aves_logo.dart:100-105 — both copies are in the same file, so extract the 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) lib/widgets/filter_grids/places_page.dart:31— lib/widgets/filter_grids/places_page.dart:31-36 | lib/widgets/filter_grids/states_page.dart:37-42 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) lib/widgets/viewer/visual/raster.dart:404— lib/widgets/viewer/visual/raster.dart:404-409 | lib/widgets/viewer/visual/vector.dart:320-325 — before extracting anything, compare `lib/widgets/viewer/visual/raster.dart` and `lib/widgets/viewer/visual/vector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/locale/calendar/ops/hijri.dart:60— lib/locale/calendar/ops/hijri.dart:60-65 | lib/locale/calendar/ops/persian.dart:58-63 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/locale/calendar/ops/hijri.dart:67— lib/locale/calendar/ops/hijri.dart:67-72 | lib/locale/calendar/ops/persian.dart:65-70 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/locale/calendar/ops/hijri.dart:74— lib/locale/calendar/ops/hijri.dart:74-79 | lib/locale/calendar/ops/persian.dart:72-77 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/locale/calendar/ops/hijri.dart:122— lib/locale/calendar/ops/hijri.dart:122-127 | lib/locale/calendar/ops/persian.dart:120-125 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/locale/calendar/ops/hijri.dart:129— lib/locale/calendar/ops/hijri.dart:129-134 | lib/locale/calendar/ops/persian.dart:127-132 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) lib/model/filters/container/set_and.dart:47— lib/model/filters/container/set_and.dart:47-52 | lib/model/filters/container/set_or.dart:47-52 — 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) lib/widgets/common/thumbnail/error.dart:28— lib/widgets/common/thumbnail/error.dart:28-33 | lib/widgets/viewer/visual/error.dart:31-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.
Duplicated block (6 lines × 2) lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:73— lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:73-78 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:71-76 — 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) lib/widgets/viewer/overlay/bottom/bottom.dart:105— lib/widgets/viewer/overlay/bottom/bottom.dart:105-110 | lib/widgets/viewer/overlay/bottom/slideshow_buttons.dart:67-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 (6 lines × 2) lib/model/filters/missing.dart:39— lib/model/filters/missing.dart:39-44 | lib/model/filters/type.dart:68-73 — 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) lib/model/source/album.dart:196— lib/model/source/album.dart:196-201 | lib/model/source/tag.dart:167-172 — 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) lib/widgets/settings/accessibility/accessibility.dart:30— lib/widgets/settings/accessibility/accessibility.dart:30-35 | lib/widgets/settings/thumbnails/thumbnails.dart:30-35 — 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) android/app/src/main/kotlin/deckers/thibault/aves/AnalysisWorker.kt:122— android/app/src/main/kotlin/deckers/thibault/aves/AnalysisWorker.kt:122-127 | android/app/src/main/kotlin/deckers/thibault/aves/HomeWidgetProvider.kt:317-322 — 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, `android/app/src/main/kotlin/deckers/thibault/aves/AnalysisWorker.kt:130` calls `MethodChannel`, `onMethodCall` and `android/app/src/main/kotlin/deckers/thibault/aves/HomeWidgetProvider.kt:323` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:195— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:195-200 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:219-224 — both copies are in the same file, so extract the 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) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1027— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1027-1032 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1519-1524 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
TooManyMethods: DerivedMaterialLocalizations lib/widgets/common/basic/derived_material_localization.dart:71— TooManyMethods — 150 methods. The bar is 30 methods; this is 120 over it, 5.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SqfliteLocalMediaDb lib/model/db/db_sqflite.dart:21— TooManyMethods — 67 methods. The bar is 30 methods; this is 37 over it, 2.23× the bar. Most of these members implement model.LocalMediaDb (57 of 67 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: LocalMediaDb lib/model/db/db.dart:12— 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: AvesEntry lib/model/entry/entry.dart:21— TooManyMethods — 54 methods. The bar is 30 methods; this is 24 over it, 1.80× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _EntryViewerStackState lib/widgets/viewer/entry_viewer_stack.dart:63— TooManyMethods — 50 methods. The bar is 30 methods; this is 20 over it, 1.67× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: StorageUtils android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:42— 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: MpvVideoController plugins/aves_video_mpv/lib/src/controller_video.dart:16— 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: _InkResponseState lib/widgets/common/basic/gestures/ink_well.dart:582— 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: Settings lib/model/settings/settings.dart:47— 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: CollectionSource lib/model/source/collection_source.dart:76— 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: EntrySetActionDelegate lib/widgets/collection/entry_set_action_delegate.dart:70— 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: AvesVideoController plugins/aves_video/lib/src/controller_video.dart:20— 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: _CollectionAppBarState lib/widgets/collection/app_bar.dart:82— 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: ExoVideoController plugins/aves_video_exo/lib/src/controller_video.dart:10— TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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: DiffMatchPatch lib/utils/diff_match.dart:74— 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: ImageProvider android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:88— 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: _CropperState lib/widgets/editor/transform/cropper.dart:40— 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: Exif lib/ref/metadata/exif.dart:1— TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: FilterGrouping lib/model/grouping/common.dart:35— TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (5 lines × 2) lib/services/device_service.dart:208— lib/services/device_service.dart:208-212 | lib/services/device_service.dart:221-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.
Duplicated block (5 lines × 2) lib/services/metadata/metadata_edit_service.dart:115— lib/services/metadata/metadata_edit_service.dart:115-119 | lib/services/metadata/metadata_fetch_service.dart:301-305 — 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 (5 lines × 2) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:490— lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:490-494 | lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:504-508 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) lib/locale/calendar/ops/hijri.dart:81— lib/locale/calendar/ops/hijri.dart:81-85 | lib/locale/calendar/ops/persian.dart:79-83 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 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 (5 lines × 2) lib/locale/calendar/ops/hijri.dart:105— lib/locale/calendar/ops/hijri.dart:105-109 | lib/locale/calendar/ops/persian.dart:103-107 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 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 (5 lines × 2) lib/locale/calendar/ops/hijri.dart:111— lib/locale/calendar/ops/hijri.dart:111-115 | lib/locale/calendar/ops/persian.dart:109-113 — before extracting anything, compare `lib/locale/calendar/ops/hijri.dart` and `lib/locale/calendar/ops/persian.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 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 (5 lines × 2) lib/model/source/location/country.dart:31— lib/model/source/location/country.dart:31-35 | lib/model/source/location/state.dart:31-35 — 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 (5 lines × 2) lib/widgets/common/grid/sections/fixed/scale_overlay.dart:74— lib/widgets/common/grid/sections/fixed/scale_overlay.dart:74-78 | lib/widgets/common/grid/sections/mosaic/scale_overlay.dart:81-85 — 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) lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:86— lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:86-90 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:85-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.
Duplicated block (5 lines × 2) lib/widgets/dialogs/filter_editors/create_group_dialog.dart:76— lib/widgets/dialogs/filter_editors/create_group_dialog.dart:76-80 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:78-82 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/create_group_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_group_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (5 lines × 2) lib/widgets/dialogs/filter_editors/create_group_dialog.dart:89— lib/widgets/dialogs/filter_editors/create_group_dialog.dart:89-93 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:91-95 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/create_group_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_group_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (5 lines × 2) lib/widgets/dialogs/filter_editors/create_stored_album_dialog.dart:140— lib/widgets/dialogs/filter_editors/create_stored_album_dialog.dart:140-144 | lib/widgets/dialogs/select_storage_dialog.dart:68-72 — 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) lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:89— lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:89-93 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:79-83 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) lib/image_providers/region_provider.dart:47— lib/image_providers/region_provider.dart:47-51 | lib/image_providers/thumbnail_provider.dart:47-51 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) lib/widgets/filter_grids/countries_page.dart:54— lib/widgets/filter_grids/countries_page.dart:54-58 | lib/widgets/filter_grids/places_page.dart:54-58 — 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 (5 lines × 2) plugins/aves_magnifier/lib/src/scale/scale_boundaries.dart:100— plugins/aves_magnifier/lib/src/scale/scale_boundaries.dart:100-104 | plugins/aves_magnifier/lib/src/scale/scale_boundaries.dart:113-117 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:538— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:538-542 | android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt:124-128 — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:538` it does not close everything it opens, so those exact lines 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) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:244— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:244-248 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:717-721 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:244` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) lib/services/app_service.dart:94— lib/services/app_service.dart:94-101 | lib/services/app_service.dart:143-150 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) lib/services/device_service.dart:69— lib/services/device_service.dart:69-76 | lib/services/intent_service.dart:14-22 — 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) lib/services/media/embedded_data_service.dart:105— lib/services/media/embedded_data_service.dart:105-112 | lib/services/media/embedded_data_service.dart:142-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.
Duplicated block (8 lines × 2) lib/services/media/media_edit_service.dart:105— lib/services/media/media_edit_service.dart:105-112 | lib/services/media/media_edit_service.dart:154-161 — both copies are in the same file, so extract the 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) lib/widgets/common/action_mixins/entry_storage.dart:88— lib/widgets/common/action_mixins/entry_storage.dart:88-95 | lib/widgets/common/action_mixins/entry_storage.dart:259-266 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) lib/widgets/common/grid/sections/layout/fixed_extent_grid_row.dart:30— lib/widgets/common/grid/sections/layout/fixed_extent_grid_row.dart:30-37 | lib/widgets/common/grid/sections/layout/fixed_extent_grid_row.dart:146-153 — both copies are in the same file, so extract the 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) lib/widgets/dialogs/selection_dialogs/multi_selection.dart:39— lib/widgets/dialogs/selection_dialogs/multi_selection.dart:39-46 | lib/widgets/dialogs/selection_dialogs/single_selection.dart:61-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 (8 lines × 2) lib/widgets/common/grid/sections/fixed/scale_overlay.dart:80— lib/widgets/common/grid/sections/fixed/scale_overlay.dart:80-87 | lib/widgets/common/grid/sections/mosaic/scale_overlay.dart:87-94 — 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) lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:267— lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:267-274 | lib/widgets/map/address_row.dart:88-95 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) lib/widgets/viewer/action/entry_action_delegate.dart:518— lib/widgets/viewer/action/entry_action_delegate.dart:518-525 | lib/widgets/viewer/action/entry_info_action_delegate.dart:279-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 (8 lines × 2) lib/model/filters/container/album_group.dart:34— lib/model/filters/container/album_group.dart:34-41 | lib/model/filters/container/tag_group.dart:34-41 — 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) lib/widgets/about/about_page.dart:11— lib/widgets/about/about_page.dart:11-18 | lib/widgets/settings/settings_page.dart:36-43 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) lib/widgets/settings/navigation/bottom_nav_actions_editor_page.dart:55— lib/widgets/settings/navigation/bottom_nav_actions_editor_page.dart:55-62 | lib/widgets/settings/viewer/viewer_actions_editor_page.dart:51-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1254— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1254-1261 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1342-1349 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1254` it does not close everything it opens, so those exact lines 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) android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/darttoplatform/ImageByteStreamHandler.kt:62— android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/darttoplatform/ImageByteStreamHandler.kt:62-69 | android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/darttoplatform/ImageByteStreamHandler.kt:183-190 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
ClassTooLong: GeoTiffDirectory lib/widgets/viewer/info/metadata/geotiff.dart:3— ClassTooLong — 3811 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 3411 over it, 9.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.
ClassTooLong: ImageProvider android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:88— ClassTooLong — 1342 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 942 over it, 3.36× 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: MetadataFetchHandler android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:122— ClassTooLong — 969 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 569 over it, 2.42× 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: DiffMatchPatch lib/utils/diff_match.dart:74— ClassTooLong — 766 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 366 over it, 1.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: EntrySetActionDelegate lib/widgets/collection/entry_set_action_delegate.dart:70— ClassTooLong — 647 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 247 over it, 1.62× 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: _EntryViewerStackState lib/widgets/viewer/entry_viewer_stack.dart:63— ClassTooLong — 645 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 245 over it, 1.61× 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: _CollectionAppBarState lib/widgets/collection/app_bar.dart:82— ClassTooLong — 563 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 163 over it, 1.41× 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: Exif lib/ref/metadata/exif.dart:1— ClassTooLong — 536 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 136 over it, 1.34× 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: _CropperState lib/widgets/editor/transform/cropper.dart:40— ClassTooLong — 534 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 134 over it, 1.34× 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: SqfliteLocalMediaDb lib/model/db/db_sqflite.dart:21— ClassTooLong — 485 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 85 over it, 1.21× 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: MediaStoreImageProvider android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:45— ClassTooLong — 477 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 77 over it, 1.19× 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: LocalMediaDbUpgrader lib/model/db/db_sqflite_upgrade.dart:10— ClassTooLong — 436 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 36 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: MainActivity android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt:80— ClassTooLong — 418 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 18 over it, 1.05× 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: _EditEntryLocationDialogState lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:56— ClassTooLong — 403 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 3 over it, 1.01× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
FileTooLong: metadata/geotiff.dart lib/widgets/viewer/info/metadata/geotiff.dart— FileTooLong — 3812 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: GeoTiffDirectory (3-3846). The bar is 500 significant lines; this is 3312 over it, 7.62× 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: provider/ImageProvider.kt android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt— FileTooLong — 1428 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ImageProvider (88-2134). The bar is 500 significant lines; this is 928 over it, 2.86× 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: calls/MetadataFetchHandler.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt— FileTooLong — 1088 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: MetadataFetchHandler (122-1683). The bar is 500 significant lines; this is 588 over it, 2.18× 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: utils/diff_match.dart lib/utils/diff_match.dart— FileTooLong — 781 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DiffMatchPatch (76-1480). The bar is 500 significant lines; this is 281 over it, 1.56× 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: viewer/entry_viewer_stack.dart lib/widgets/viewer/entry_viewer_stack.dart— FileTooLong — 700 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: _EntryViewerStackState (63-1024). The bar is 500 significant lines; this is 200 over it, 1.40× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: collection/entry_set_action_delegate.dart lib/widgets/collection/entry_set_action_delegate.dart— FileTooLong — 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: EntrySetActionDelegate (70-976). The bar is 500 significant lines; this is 147 over it, 1.29× 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: collection/app_bar.dart lib/widgets/collection/app_bar.dart— FileTooLong — 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: _CollectionAppBarState (82-872). The bar is 500 significant lines; this is 134 over it, 1.27× 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: gestures/ink_well.dart lib/widgets/common/basic/gestures/ink_well.dart— FileTooLong — 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: _InkResponseState (582-1139). The bar is 500 significant lines; this is 117 over it, 1.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: transform/cropper.dart lib/widgets/editor/transform/cropper.dart— FileTooLong — 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _CropperState (40-785). The bar is 500 significant lines; this is 66 over it, 1.13× 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: widgets/aves_app.dart lib/widgets/aves_app.dart— FileTooLong — 564 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 64 over it, 1.13× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: metadata/exif.dart lib/ref/metadata/exif.dart— FileTooLong — 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Exif (1-646). The bar is 500 significant lines; this is 36 over it, 1.07× 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: common/filter_grid_page.dart lib/widgets/filter_grids/common/filter_grid_page.dart— FileTooLong — 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: provider/MediaStoreImageProvider.kt android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt— FileTooLong — 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: MediaStoreImageProvider (45-767). The bar is 500 significant lines; this is 28 over it, 1.06× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: db/db_sqflite.dart lib/model/db/db_sqflite.dart— FileTooLong — 503 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SqfliteLocalMediaDb (21-745). The bar is 500 significant lines; this is 3 over it, 1.01× 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.
Duplicated block (12 lines × 2) lib/services/android_debug_service.dart:55— lib/services/android_debug_service.dart:55-66 | lib/services/android_debug_service.dart:128-139 — both copies are in the same file, so extract the 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 (12 lines × 2) lib/services/app_service.dart:98— lib/services/app_service.dart:98-109 | lib/services/app_service.dart:205-216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) lib/services/media/embedded_data_service.dart:71— lib/services/media/embedded_data_service.dart:71-82 | lib/services/media/embedded_data_service.dart:88-99 — both copies are in the same file, so extract the 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 (12 lines × 2) lib/services/storage_permission_service.dart:104— lib/services/storage_permission_service.dart:104-115 | lib/services/storage_permission_service.dart:167-178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) lib/widgets/about/bug_report.dart:46— lib/widgets/about/bug_report.dart:46-57 | lib/widgets/about/data_usage.dart:38-49 — 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) lib/widgets/collection/entry_set_action_delegate.dart:506— lib/widgets/collection/entry_set_action_delegate.dart:506-517 | lib/widgets/stats/top_page.dart:109-120 — 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 (12 lines × 2) lib/widgets/common/behaviour/eager_scale_gesture_recognizer.dart:426— lib/widgets/common/behaviour/eager_scale_gesture_recognizer.dart:426-437 | lib/widgets/common/behaviour/eager_scale_gesture_recognizer.dart:561-572 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) lib/widgets/common/grid/sections/fixed/section_layout_builder.dart:29— lib/widgets/common/grid/sections/fixed/section_layout_builder.dart:29-40 | lib/widgets/common/grid/sections/mosaic/section_layout_builder.dart:45-56 — 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 (12 lines × 2) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:371— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:371-382 | lib/widgets/filter_grids/common/action_delegates/album_set.dart:211-222 — 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 (12 lines × 2) lib/widgets/home_widget.dart:86— lib/widgets/home_widget.dart:86-97 | lib/widgets/viewer/overlay/bottom/wallpaper_buttons.dart:178-189 — 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 (12 lines × 2) plugins/aves_video_mpv/lib/src/controller_audio.dart:66— plugins/aves_video_mpv/lib/src/controller_audio.dart:66-77 | plugins/aves_video_mpv/lib/src/controller_video.dart:116-127 — 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) lib/model/source/album.dart:124— lib/model/source/album.dart:124-133 | lib/model/source/location/place.dart:13-21 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) lib/model/source/location/location.dart:75— lib/model/source/location/location.dart:75-83 | lib/model/source/location/location.dart:155-163 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) lib/widgets/about/tv_license_page.dart:105— lib/widgets/about/tv_license_page.dart:105-113 | lib/widgets/viewer/info/metadata/tv_page.dart:96-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) lib/widgets/common/action_controls/togglers/mute.dart:27— lib/widgets/common/action_controls/togglers/mute.dart:27-35 | lib/widgets/common/action_controls/togglers/mute.dart:69-77 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:201— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:201-209 | lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart:183-191 — before extracting anything, compare `lib/widgets/dialogs/pick_dialogs/album_pick_page.dart` and `lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) lib/widgets/viewer/overlay/bottom/video/progress_bar.dart:73— lib/widgets/viewer/overlay/bottom/video/progress_bar.dart:73-81 | lib/widgets/viewer/overlay/bottom/video/slow_motion_bar.dart:54-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.
Duplicated block (9 lines × 2) lib/widgets/viewer/overlay/top/details/details.dart:293— lib/widgets/viewer/overlay/top/details/details.dart:293-301 | lib/widgets/viewer/overlay/top/details/details.dart:316-324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) lib/widgets/viewer/visual/raster.dart:305— lib/widgets/viewer/visual/raster.dart:305-313 | lib/widgets/viewer/visual/vector.dart:257-265 — before extracting anything, compare `lib/widgets/viewer/visual/raster.dart` and `lib/widgets/viewer/visual/vector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) lib/widgets/explorer/crumb_line.dart:14— lib/widgets/explorer/crumb_line.dart:14-22 | lib/widgets/filter_grids/common/group_crumb_line.dart:13-21 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:171— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:171-179 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:937-945 — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:171` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:802— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:802-810 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:982-990 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:802` 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) lib/widgets/collection/collection_grid.dart:521— lib/widgets/collection/collection_grid.dart:521-527 | lib/widgets/filter_grids/common/filter_grid_page.dart:697-703 — 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) lib/widgets/common/action_mixins/entry_storage.dart:295— lib/widgets/common/action_mixins/entry_storage.dart:295-301 | lib/widgets/common/action_mixins/entry_storage.dart:458-464 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) lib/widgets/stats/filter_table.dart:30— lib/widgets/stats/filter_table.dart:30-36 | lib/widgets/stats/top_page.dart:82-88 — 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) lib/widgets/about/tv_license_page.dart:40— lib/widgets/about/tv_license_page.dart:40-46 | lib/widgets/viewer/info/metadata/tv_page.dart:44-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) lib/widgets/collection/layout_bar.dart:43— lib/widgets/collection/layout_bar.dart:43-49 | lib/widgets/common/identity/aves_filter_chip.dart:186-192 — 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) lib/widgets/common/grid/sections/calendar/day_tile.dart:17— lib/widgets/common/grid/sections/calendar/day_tile.dart:17-23 | lib/widgets/common/identity/highlight_title.dart:24-30 — 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) lib/model/filters/container/album_group.dart:21— lib/model/filters/container/album_group.dart:21-27 | lib/model/filters/container/tag_group.dart:21-27 — 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) lib/model/filters/container/set_and.dart:82— lib/model/filters/container/set_and.dart:82-88 | lib/model/filters/container/set_or.dart:82-88 — 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) lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:227— lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:227-233 | lib/widgets/map/address_row.dart:34-40 — 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) android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:631— android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:631-637 | android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:661-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 `android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:631` it does not close everything it opens, so those exact lines 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) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:287— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:287-293 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1290-1296 — 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.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/StorageHandler.kt:102— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:302— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/glide/VideoThumbnailGlideModule.kt:117— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/metadata/Metadata.kt:128— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/model/SourceEntry.kt:153— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/model/SourceEntry.kt:211— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/model/SourceEntry.kt:272— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:315— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/exifinterface/src/main/java/androidx/exifinterface/media/ExifInterfaceUtilsFork.java:145— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/exifinterface/src/main/java/androidx/exifinterface/media/ExifInterfaceFork.java:5775— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) android/exifinterface/src/main/java/androidx/exifinterface/media/ExifInterfaceFork.java:5802— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
X18 · Disposal-pattern correctness· Owned disposable field is never released · ×10
Owned disposable field is never released lib/model/query.dart:9— `Query` carries a disposal duty — it declares its own release — and it creates `_enabledStreamController` itself (line 9, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_enabledStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_enabledStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/collection/collection_page.dart:50— `_CollectionPageState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_draggableScrollBarEventStreamController` itself (line 50, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_draggableScrollBarEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_draggableScrollBarEventStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/common/action_controls/quick_choosers/common/button.dart:30— `ChooserQuickButtonState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_moveUpdateStreamController` itself (line 30, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_moveUpdateStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_moveUpdateStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/editor/transform/controller.dart:23— `TransformController` carries a disposal duty — it declares its own release — and it creates `_transformationStreamController` itself (line 23, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_transformationStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_transformationStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/editor/transform/controller.dart:27— `TransformController` carries a disposal duty — it declares its own release — and it creates `_activityStreamController` itself (line 27, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_activityStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_activityStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/explorer/explorer_page.dart:47— `_ExplorerPageState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_draggableScrollBarEventStreamController` itself (line 47, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_draggableScrollBarEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_draggableScrollBarEventStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/viewer/multipage/controller.dart:17— `MultiPageController` carries a disposal duty — it declares its own release — and it creates `_infoStreamController` itself (line 17, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_infoStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_infoStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released lib/widgets/viewer/overlay/top/details/details.dart:39— `_ViewerDetailOverlayState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_detailStreamController` itself (line 39, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_detailStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_detailStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released plugins/aves_services_google/lib/src/map.dart:42— `_EntryGoogleMapState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_markerBitmapReadyStreamController` itself (line 42, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_markerBitmapReadyStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_markerBitmapReadyStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released plugins/aves_video_exo/lib/src/controller_video.dart:15— `ExoVideoController` carries a disposal duty — it declares its own release — and it creates `_eventStreamController` itself (line 15, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_eventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_eventStreamController.close();` in `dispose()` before `super.dispose()`.
Change coupling: albums_page.dart ↔ tags_page.dart lib/widgets/filter_grids/albums_page.dart:1— `lib/widgets/filter_grids/albums_page.dart` and `lib/widgets/filter_grids/tags_page.dart` change together 94% of the time (15 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 between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are `7909e2f0` minor; `5dc6b22f` #277 albums/countries/tags: show/hide title filter; `45153e94` fixed superfluous selector rebuild — run `git show` on any of them.
Change coupling: entry_viewer_stack.dart ↔ wallpaper_page.dart lib/widgets/viewer/entry_viewer_stack.dart:1— `lib/widgets/viewer/entry_viewer_stack.dart` and `lib/widgets/wallpaper_page.dart` change together 83% of the time (19 of the 23 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 19 shared commits counted here, the most recent 3 are `cf76833a` #2156 improved system UI style consistency across navigation; `d7a24ea1` fixed system UI toggle for flutter v3.44; `2b47d748` avoid dynamic usage — run `git show` on any of them.
Change coupling: filter_grid_page.dart ↔ tags_page.dart lib/widgets/filter_grids/common/filter_grid_page.dart:1— `lib/widgets/filter_grids/common/filter_grid_page.dart` and `lib/widgets/filter_grids/tags_page.dart` change together 81% of the time (13 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 13 shared commits counted here, the most recent 3 are `7909e2f0` minor; `5dc6b22f` #277 albums/countries/tags: show/hide title filter; `2a472273` #9 fast scroll feedback + staggered animation improvements — run `git show` on any of them.
Change coupling: media_store_source.dart ↔ trash.dart lib/model/source/media_store_source.dart:1— `lib/model/source/media_store_source.dart` and `lib/model/source/trash.dart` change together 70% of the time (7 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 between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise 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 `75a7e5fa` #1917 fixes for invalid/lost/untracked bin items; `ffbf0bd8` improved error reporting; `b5fea82f` loader/completer review — run `git show` on any of them.
Change coupling: RegionFetcher.kt ↔ TiffRegionFetcher.kt android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt:1— `android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/decoding/TiffRegionFetcher.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). 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 8 shared commits counted here, the most recent 3 are `95d411da` bitmap conversion: ARGB_8888 -> rgbaFloat32; `6a4c1e71` bitmap conversion: ARGB_8888 -> RGBA_1010102 -> rgbaFloat32; `50e2929e` stream image bytes instead of custom fetch (at that commit the files were still `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/fetchers/RegionFetcher.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/fetchers/TiffRegionFetcher.kt`) — run `git show` on any of them.
Change coupling: ThumbnailFetcher.kt ↔ TiffRegionFetcher.kt android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt:1— `android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/decoding/TiffRegionFetcher.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). 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 8 shared commits counted here, the most recent 3 are `95d411da` bitmap conversion: ARGB_8888 -> rgbaFloat32; `6a4c1e71` bitmap conversion: ARGB_8888 -> RGBA_1010102 -> rgbaFloat32; `50e2929e` stream image bytes instead of custom fetch (at that commit the files were still `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/fetchers/ThumbnailFetcher.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/fetchers/TiffRegionFetcher.kt`) — run `git show` on any of them.
Change coupling: AccessibilityHandler.kt ↔ SettingsChangeStreamHandler.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AccessibilityHandler.kt:1— `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AccessibilityHandler.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/platformtodart/SettingsChangeStreamHandler.kt` change together 55% of the time (6 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 6 shared commits counted here, the most recent 3 are `bb5bbcc0` #1378 accessibility: apply system "touch and hold delay" setting (at that commit the file was still `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/SettingsChangeStreamHandler.kt`); `ef2d0eef` removed pre-kitkat code (at that commit the file was still `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/SettingsChangeStreamHandler.kt`); `3141e0ba` android lint (at that commit the file was still `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/SettingsChangeStreamHandler.kt`) — run `git show` on any of them.
Change coupling: ImageByteStreamHandler.kt ↔ BitmapUtils.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/darttoplatform/ImageByteStreamHandler.kt:1— `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/darttoplatform/ImageByteStreamHandler.kt` and `android/app/src/main/kotlin/deckers/thibault/aves/utils/BitmapUtils.kt` change together 54% of the time (13 of the 24 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 `95d411da` bitmap conversion: ARGB_8888 -> rgbaFloat32; `6a4c1e71` bitmap conversion: ARGB_8888 -> RGBA_1010102 -> rgbaFloat32; `d432d8a3` fixed decoding of streamed original bytes (at that commit the file was still `android/app/src/main/kotlin/deckers/thibault/aves/channel/streams/ImageByteStreamHandler.kt`) — run `git show` on any of them.
Change coupling: trash.dart ↔ vaults.dart lib/model/source/trash.dart:1— `lib/model/source/trash.dart` and `lib/model/vaults/vaults.dart` 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 `2082e4b1` #2246 improved logs; `ffbf0bd8` improved error reporting; `30602538` #971 duplicate detection — run `git show` on any of them.
Duplicated block (11 lines × 2) lib/model/source/trash.dart:51— lib/model/source/trash.dart:51-61 | lib/model/vaults/vaults.dart:182-192 — 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) lib/widgets/dialogs/filter_editors/cover_selection_dialog.dart:260— lib/widgets/dialogs/filter_editors/cover_selection_dialog.dart:260-270 | lib/widgets/dialogs/filter_editors/cover_selection_dialog.dart:302-312 — both copies are in the same file, so extract the 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) lib/widgets/explorer/app_bar.dart:219— lib/widgets/explorer/app_bar.dart:219-229 | lib/widgets/explorer/explorer_page.dart:195-205 — 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) lib/widgets/viewer/info/metadata/xmp_namespaces.dart:214— lib/widgets/viewer/info/metadata/xmp_namespaces.dart:214-224 | lib/widgets/viewer/info/metadata/xmp_namespaces.dart:235-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.
Duplicated block (11 lines × 2) lib/widgets/viewer/visual/raster.dart:321— lib/widgets/viewer/visual/raster.dart:321-331 | lib/widgets/viewer/visual/vector.dart:273-283 — before extracting anything, compare `lib/widgets/viewer/visual/raster.dart` and `lib/widgets/viewer/visual/vector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (11 lines × 2) plugins/aves_services_google/lib/aves_services_platform.dart:47— plugins/aves_services_google/lib/aves_services_platform.dart:47-57 | plugins/aves_services_none/lib/aves_services_platform.dart:19-29 — 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) plugins/aves_video/lib/src/controller_audio.dart:50— plugins/aves_video/lib/src/controller_audio.dart:50-60 | plugins/aves_video/lib/src/controller_video.dart:87-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.
Duplicated block (11 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:121— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:121-131 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:316-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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:121` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:909— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:909-919 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1266-1276 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:909` 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.
HackComment lib/utils/diff_match.dart:411— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:461— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:523— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:608— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:657— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:906— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:1441— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment lib/utils/diff_match.dart:1476— /// Hack to allow unit tests to call private method. Do not use. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
Duplicated block (10 lines × 2) lib/model/source/location/location.dart:86— lib/model/source/location/location.dart:86-95 | lib/model/source/location/location.dart:165-174 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) lib/services/analysis_service.dart:24— lib/services/analysis_service.dart:24-33 | lib/services/global_search.dart:18-27 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) lib/services/media/media_store_service.dart:30— lib/services/media/media_store_service.dart:30-39 | lib/services/media/media_store_service.dart:43-52 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) lib/widgets/collection/app_bar.dart:295— lib/widgets/collection/app_bar.dart:295-304 | lib/widgets/filter_grids/common/app_bar.dart:260-269 — before extracting anything, compare `lib/widgets/collection/app_bar.dart` and `lib/widgets/filter_grids/common/app_bar.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) lib/widgets/settings/thumbnails/collection_actions_editor_page.dart:83— lib/widgets/settings/thumbnails/collection_actions_editor_page.dart:83-92 | lib/widgets/viewer/debug/debug_page.dart:41-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) lib/widgets/viewer/visual/raster.dart:80— lib/widgets/viewer/visual/raster.dart:80-89 | lib/widgets/viewer/visual/vector.dart:67-76 — before extracting anything, compare `lib/widgets/viewer/visual/raster.dart` and `lib/widgets/viewer/visual/vector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) lib/services/app_profile_service.dart:67— lib/services/app_profile_service.dart:67-76 | lib/services/storage_service.dart:122-131 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) plugins/aves_video_exo/lib/src/factory.dart:9— plugins/aves_video_exo/lib/src/factory.dart:9-18 | plugins/aves_video_mpv/lib/src/factory.dart:19-28 — 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 (15 lines × 2) lib/services/storage_service.dart:196— lib/services/storage_service.dart:196-210 | lib/services/storage_service.dart:259-273 — both copies are in the same file, so extract the 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) lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:310— lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:310-324 | lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:258-272 — before extracting anything, compare `lib/widgets/dialogs/entry_editors/edit_date_dialog.dart` and `lib/widgets/dialogs/entry_editors/edit_location_dialog.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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) lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:57— lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:57-71 | lib/widgets/dialogs/filter_editors/create_stored_album_dialog.dart:124-138 — 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 (15 lines × 2) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:233— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:233-247 | lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart:215-229 — before extracting anything, compare `lib/widgets/dialogs/pick_dialogs/album_pick_page.dart` and `lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:270— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:270-284 | lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart:248-262 — before extracting anything, compare `lib/widgets/dialogs/pick_dialogs/album_pick_page.dart` and `lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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) lib/widgets/viewer/debug/db.dart:140— lib/widgets/viewer/debug/db.dart:140-154 | lib/widgets/viewer/debug/db.dart:159-173 — both copies are in the same file, so extract the 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 (19 lines × 2) lib/widgets/about/about_tv_page.dart:20— lib/widgets/about/about_tv_page.dart:20-38 | lib/widgets/settings/settings_tv_page.dart:15-33 — 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 (19 lines × 2) lib/widgets/collection/app_bar.dart:804— lib/widgets/collection/app_bar.dart:804-822 | lib/widgets/collection/entry_set_action_delegate.dart:181-199 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (19 lines × 2) lib/widgets/common/grid/sections/calendar/section_layout_builder.dart:44— lib/widgets/common/grid/sections/calendar/section_layout_builder.dart:44-62 | lib/widgets/common/grid/sections/mosaic/section_layout_builder.dart:47-65 — 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 (19 lines × 2) lib/widgets/viewer/visual/raster.dart:181— lib/widgets/viewer/visual/raster.dart:181-199 | lib/widgets/viewer/visual/vector.dart:147-165 — before extracting anything, compare `lib/widgets/viewer/visual/raster.dart` and `lib/widgets/viewer/visual/vector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (19 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt:58— android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt:58-76 | android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt:144-162 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.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. 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 (13 lines × 2) lib/services/intent_service.dart:62— lib/services/intent_service.dart:62-74 | lib/services/storage_permission_service.dart:133-145 — 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) lib/services/storage_permission_service.dart:108— lib/services/storage_permission_service.dart:108-120 | lib/services/storage_service.dart:265-277 — 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) lib/widgets/collection/app_bar.dart:105— lib/widgets/collection/app_bar.dart:105-117 | lib/widgets/filter_grids/common/app_bar.dart:103-115 — before extracting anything, compare `lib/widgets/collection/app_bar.dart` and `lib/widgets/filter_grids/common/app_bar.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) lib/widgets/collection/collection_grid.dart:227— lib/widgets/collection/collection_grid.dart:227-239 | lib/widgets/filter_grids/common/filter_grid_page.dart:391-403 — 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) lib/widgets/viewer/entry_viewer_stack.dart:469— lib/widgets/viewer/entry_viewer_stack.dart:469-481 | lib/widgets/wallpaper_page.dart:173-185 — before extracting anything, compare `lib/widgets/viewer/entry_viewer_stack.dart` and `lib/widgets/wallpaper_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Off the main sequence: aves_screen_state (pub) — aves_screen_state (pub): abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: aves_ui — aves_ui: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Off the main sequence: aves_utils — aves_utils: abstractness 0.14, instability 0.00, distance 0.86 — zone of pain — concrete and depended on by 7 project(s), so it's rigid to change.
Off the main sequence: aves_map — aves_map: abstractness 0.04, instability 0.20, distance 0.76 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
Off the main sequence: aves_model — aves_model: abstractness 0.06, instability 0.20, distance 0.74 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
Duplicated block (10–11 lines × 2) lib/model/covers.dart:214— lib/model/covers.dart:214-223 | lib/model/covers.dart:236-246 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) lib/model/source/trash.dart:91— lib/model/source/trash.dart:91-101 | lib/model/vaults/vaults.dart:199-208 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10–11 lines × 2) lib/services/android_debug_service.dart:42— lib/services/android_debug_service.dart:42-52 | lib/services/android_debug_service.dart:144-153 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) lib/services/metadata/metadata_edit_service.dart:48— lib/services/metadata/metadata_edit_service.dart:48-58 | lib/services/metadata/metadata_edit_service.dart:98-107 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (5 members, 50+ identical tokens) lib/model/source/album.dart:121— lib/model/source/album.dart:121-147 | lib/model/source/location/country.dart:10-29 | lib/model/source/location/place.dart:10-29 | lib/model/source/location/state.dart:10-29 | lib/model/source/tag.dart:105-128 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) lib/widgets/filter_grids/albums_page.dart:36— lib/widgets/filter_grids/albums_page.dart:36-92 | lib/widgets/filter_grids/countries_page.dart:22-52 | lib/widgets/filter_grids/places_page.dart:22-52 | lib/widgets/filter_grids/states_page.dart:28-58 | lib/widgets/filter_grids/tags_page.dart:31-77 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:94— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:94-150 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:152-187 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:189-211 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:213-235 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:272-328 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Duplicated block (18 lines × 2) lib/widgets/collection/entry_set_action_delegate.dart:911— lib/widgets/collection/entry_set_action_delegate.dart:911-928 | lib/widgets/filter_grids/common/action_delegates/album_set.dart:260-277 — 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 (18 lines × 2) lib/widgets/dialogs/convert_entry_dialog.dart:117— lib/widgets/dialogs/convert_entry_dialog.dart:117-134 | lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:99-116 — 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 (18 lines × 2) lib/widgets/viewer/entry_viewer_stack.dart:987— lib/widgets/viewer/entry_viewer_stack.dart:987-1004 | lib/widgets/wallpaper_page.dart:265-282 — before extracting anything, compare `lib/widgets/viewer/entry_viewer_stack.dart` and `lib/widgets/wallpaper_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) lib/model/source/location/location.dart:102— lib/model/source/location/location.dart:102-115 | lib/model/source/location/location.dart:187-200 | lib/model/source/tag.dart:74-87 — 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 (14 lines × 3) lib/widgets/debug/settings.dart:67— lib/widgets/debug/settings.dart:67-80 | lib/widgets/debug/settings.dart:84-97 | lib/widgets/debug/settings.dart:100-113 — 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 (14 lines × 3) lib/widgets/debug/settings.dart:118— lib/widgets/debug/settings.dart:118-131 | lib/widgets/debug/settings.dart:136-149 | lib/widgets/debug/settings.dart:153-166 — 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 (10 lines × 3) lib/model/media/geotiff.dart:97— lib/model/media/geotiff.dart:97-106 | lib/widgets/home_widget.dart:89-98 | lib/widgets/viewer/overlay/bottom/wallpaper_buttons.dart:181-190 — 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 (10 lines × 3) lib/widgets/collection/entry_set_action_delegate.dart:509— lib/widgets/collection/entry_set_action_delegate.dart:509-518 | lib/widgets/stats/top_page.dart:112-121 | lib/widgets/viewer/action/entry_info_action_delegate.dart:225-234 — 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 (10 lines × 3) lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:38— lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:38-47 | lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:42-51 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:38-47 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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 × 3) lib/services/android_debug_service.dart:72— lib/services/android_debug_service.dart:72-78 | lib/services/android_debug_service.dart:103-109 | lib/services/metadata/metadata_fetch_service.dart:55-61 — 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 (7 lines × 3) lib/widgets/settings/privacy/permissions/manage_media.dart:31— lib/widgets/settings/privacy/permissions/manage_media.dart:31-37 | lib/widgets/settings/privacy/permissions/notification.dart:32-38 | lib/widgets/settings/privacy/permissions/permissions_tile.dart:61-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (7 lines × 3) lib/model/source/album.dart:149— lib/model/source/album.dart:149-155 | lib/model/source/album.dart:157-163 | lib/model/source/tag.dart:130-136 — 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.
Sync-over-async blocking lib/widgets/common/action_mixins/entry_storage.dart:45— `doExport` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking lib/widgets/common/action_mixins/entry_storage.dart:191— `doQuickMove` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking lib/widgets/dialogs/filter_editors/create_stored_album_dialog.dart:163— `_buildAlbumPath` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Change-coupling hub: MetadataFetchHandler.kt → MediaMetadataRetrieverHelper.kt, MultiPage.kt, Helper.kt, SourceEntry.kt android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt— `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt` changes together with 4 other files — `android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/metadata/MultiPage.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/model/SourceEntry.kt` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 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 4.
Change-coupling hub: entry_set_action_delegate.dart → album_set.dart, entry_info_action_delegate.dart, single_entry_editor.dart lib/widgets/collection/entry_set_action_delegate.dart— `lib/widgets/collection/entry_set_action_delegate.dart` changes together with 3 other files — `lib/widgets/filter_grids/common/action_delegates/album_set.dart`, `lib/widgets/viewer/action/entry_info_action_delegate.dart`, `lib/widgets/viewer/action/single_entry_editor.dart` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (4 members, 50+ identical tokens) lib/ref/metadata/exif.dart:415— lib/ref/metadata/exif.dart:415-430 | lib/ref/metadata/exif.dart:481-496 | lib/ref/metadata/exif.dart:526-541 | lib/widgets/viewer/info/metadata/geotiff.dart:60-75 — 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) lib/widgets/collection/entry_set_action_delegate.dart:334— lib/widgets/collection/entry_set_action_delegate.dart:334-385 | lib/widgets/common/action_mixins/entry_storage.dart:191-379 | lib/widgets/common/action_mixins/entry_storage.dart:438-486 | lib/widgets/filter_grids/common/action_delegates/album_set.dart:496-549 — 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 (17 lines × 2) lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:189— lib/widgets/dialogs/pick_dialogs/location_pick_page.dart:189-205 | lib/widgets/map/info_row.dart:42-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (17 lines × 2) lib/widgets/viewer/entry_viewer_stack.dart:498— lib/widgets/viewer/entry_viewer_stack.dart:498-514 | lib/widgets/wallpaper_page.dart:193-209 — before extracting anything, compare `lib/widgets/viewer/entry_viewer_stack.dart` and `lib/widgets/wallpaper_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) lib/services/android_debug_service.dart:69— lib/services/android_debug_service.dart:69-82 | lib/services/android_debug_service.dart:100-113 — both copies are in the same file, so extract the 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) lib/widgets/navigation/nav_item.dart:146— lib/widgets/navigation/nav_item.dart:146-159 | plugins/aves_map/lib/src/style.dart:30-43 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 3) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:230— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:230-241 | lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart:212-223 | lib/widgets/filter_grids/common/app_bar.dart:319-330 — before extracting anything, compare `lib/widgets/dialogs/pick_dialogs/album_pick_page.dart` and `lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) lib/widgets/filter_grids/countries_page.dart:62— lib/widgets/filter_grids/countries_page.dart:62-73 | lib/widgets/filter_grids/places_page.dart:62-73 | lib/widgets/filter_grids/states_page.dart:69-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.
Duplicated block (8 lines × 5) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393-400 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:864-871 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1077-1084 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1576-1583 | android/app/src/main/kotlin/deckers/thibault/aves/metadata/MultiPage.kt:127-134 — there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393` 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, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:862` calls `getDirectoriesOfType`, `forEach` and `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:391` 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 × 5) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393-400 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:628-635 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1077-1084 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1496-1503 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1576-1583 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:393` 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.
`async` callback passed to `forEach` lib/widgets/debug/os_storage.dart:22— `forEach` takes a `void` callback and never awaits what it returns, so the Future each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled — it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone's error handler in Flutter. Iterate with `for (final item in items) { await … }` when the work must run in order, or `await Future.wait(items.map((item) async { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape.
`async` callback passed to `forEach` plugins/aves_map/lib/src/marker/generator.dart:47— `forEach` takes a `void` callback and never awaits what it returns, so the Future each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled — it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone's error handler in Flutter. Iterate with `for (final item in items) { await … }` when the work must run in order, or `await Future.wait(items.map((item) async { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape.
Swallowed exception (caught, then discarded) lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:585— `catch (error)` 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) lib/widgets/viewer/debug/utils.dart:7— `catch (error)` 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.
VideoMetadataFormatter.formatInfo (cyclomatic 134) lib/model/media/video/metadata.dart:174— VideoMetadataFormatter.formatInfo has cyclomatic complexity 134 (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.
Settings.import (cyclomatic 131) lib/model/settings/settings.dart:307— Settings.import has cyclomatic complexity 131 (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.
AssParser.parse (cyclomatic 94) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:49— AssParser.parse has cyclomatic complexity 94 (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.
EntrySetActionDelegate.isVisible (cyclomatic 70) lib/widgets/collection/entry_set_action_delegate.dart:71— EntrySetActionDelegate.isVisible has cyclomatic complexity 70 (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.
MetadataFetchHandler.getAllMetadata (cyclomatic 66) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143— MetadataFetchHandler.getAllMetadata has cyclomatic complexity 66 (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.
MetadataFetchHandler.getCatalogMetadataByMetadataExtractor (cyclomatic 64) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:639— MetadataFetchHandler.getCatalogMetadataByMetadataExtractor has cyclomatic complexity 64 (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.
EntryActionDelegate.isVisible (cyclomatic 62) lib/widgets/viewer/action/entry_action_delegate.dart:56— EntryActionDelegate.isVisible has cyclomatic complexity 62 (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.
AGestureDetector.build (cyclomatic 58) lib/widgets/common/basic/gestures/gesture_detector.dart:829— AGestureDetector.build has cyclomatic complexity 58 (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.
EntryActionDelegate.onActionSelected (cyclomatic 55) lib/widgets/viewer/action/entry_action_delegate.dart:191— EntryActionDelegate.onActionSelected has cyclomatic complexity 55 (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.
_HomePageState._setup (cyclomatic 47) lib/widgets/home/home_page.dart:100— _HomePageState._setup has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
QueryFilter.fieldTest (cyclomatic 45) lib/model/filters/query.dart:127— QueryFilter.fieldTest has cyclomatic complexity 45 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
SafePngMetadataReader.processChunk (cyclomatic 42) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePngMetadataReader.kt:86— SafePngMetadataReader.processChunk has cyclomatic complexity 42 (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.
MediaMetadataRetrieverHelper.getSafeDescription (cyclomatic 37) android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt:126— MediaMetadataRetrieverHelper.getSafeDescription has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
VideoSubtitles.build (cyclomatic 36) lib/widgets/viewer/visual/video/subtitle/subtitle.dart:35— VideoSubtitles.build has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ChipSetActionDelegate.isVisible (cyclomatic 35) lib/widgets/filter_grids/common/action_delegates/chip_set.dart:71— ChipSetActionDelegate.isVisible has cyclomatic complexity 35 (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.
EntryStorageMixin.doQuickMove (cyclomatic 32) lib/widgets/common/action_mixins/entry_storage.dart:191— EntryStorageMixin.doQuickMove 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.
MainActivity.extractIntentData (cyclomatic 32) android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt:364— MainActivity.extractIntentData 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.
DiffMatchPatch._diff_bisect (cyclomatic 31) lib/utils/diff_match.dart:302— DiffMatchPatch._diff_bisect has cyclomatic complexity 31 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
DiffMatchPatch._diff_cleanupSemanticLossless (cyclomatic 31) lib/utils/diff_match.dart:795— DiffMatchPatch._diff_cleanupSemanticLossless has cyclomatic complexity 31 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
_CropperState._applyCropRatioToOutline (cyclomatic 30) lib/widgets/editor/transform/cropper.dart:613— _CropperState._applyCropRatioToOutline 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.
_HomePageState._getRedirectRoute (cyclomatic 30) lib/widgets/home/home_page.dart:331— _HomePageState._getRedirectRoute has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GridThemeData._defaultIconBuilder (cyclomatic 29) lib/widgets/common/grid/theme.dart:89— GridThemeData._defaultIconBuilder has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
WallpaperButtons._getBytes (cyclomatic 29) lib/widgets/viewer/overlay/bottom/wallpaper_buttons.dart:106— WallpaperButtons._getBytes has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GeoUtils.epsgToProj4 (cyclomatic 28) plugins/aves_map/lib/src/geo_utils.dart:44— GeoUtils.epsgToProj4 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.
_CropperState._handleOutline (cyclomatic 28) lib/widgets/editor/transform/cropper.dart:231— _CropperState._handleOutline 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.
AlbumListPage.groupToSections (cyclomatic 28) lib/widgets/filter_grids/albums_page.dart:152— AlbumListPage.groupToSections 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.
AlbumChipSetActionDelegate.isVisible (cyclomatic 28) lib/widgets/filter_grids/common/action_delegates/album_set.dart:92— AlbumChipSetActionDelegate.isVisible has cyclomatic complexity 28 (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.
_OverlaySnackBarState.build (cyclomatic 27) lib/widgets/common/action_mixins/overlay_snack_bar.dart:316— _OverlaySnackBarState.build has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_AvesFilterChipState.build (cyclomatic 27) lib/widgets/common/identity/aves_filter_chip.dart:205— _AvesFilterChipState.build has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ChipActionDelegate.isVisible (cyclomatic 27) lib/widgets/filter_grids/common/action_delegates/chip.dart:34— ChipActionDelegate.isVisible has cyclomatic complexity 27 (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.
_EntryViewerStackState._handleNotification (cyclomatic 27) lib/widgets/viewer/entry_viewer_stack.dart:560— _EntryViewerStackState._handleNotification has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ImageProvider.editMetadata (cyclomatic 27) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1823— ImageProvider.editMetadata has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_DebugAppDatabaseSectionState.build (cyclomatic 25) lib/widgets/debug/database.dart:50— _DebugAppDatabaseSectionState.build has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_DbTabState.build (cyclomatic 25) lib/widgets/viewer/debug/db.dart:54— _DbTabState.build has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MetadataFetchHandler.getOverlayMetadata (cyclomatic 25) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1021— MetadataFetchHandler.getOverlayMetadata 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.
MediaStoreSource.refreshUris (cyclomatic 24) lib/model/source/media_store_source.dart:296— MediaStoreSource.refreshUris 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.
_CollectionScrollViewState._getScrollCrumbs (cyclomatic 24) lib/widgets/collection/collection_grid.dart:691— _CollectionScrollViewState._getScrollCrumbs 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.
_EntryPageViewState._buildVideoView (cyclomatic 24) lib/widgets/viewer/visual/entry_page_view.dart:199— _EntryPageViewState._buildVideoView 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.
ImageProvider.moveSingle (cyclomatic 24) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:395— ImageProvider.moveSingle 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.
MediaStoreImageProvider.fetchFrom (cyclomatic 24) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:205— MediaStoreImageProvider.fetchFrom 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.
DiffMatchPatch.diff_cleanupEfficiency (cyclomatic 23) lib/utils/diff_match.dart:918— DiffMatchPatch.diff_cleanupEfficiency has cyclomatic complexity 23 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
DiffMatchPatch.diff_cleanupMerge (cyclomatic 23) lib/utils/diff_match.dart:994— DiffMatchPatch.diff_cleanupMerge has cyclomatic complexity 23 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
ImageProvider.editExifDate (cyclomatic 23) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1700— ImageProvider.editExifDate 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.
_RenderSliverKnownExtentBoxAdaptor.performLayout (cyclomatic 21) lib/widgets/common/grid/sliver.dart:139— _RenderSliverKnownExtentBoxAdaptor.performLayout 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.
MetadataFetchHandler.getDate (cyclomatic 21) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1411— MetadataFetchHandler.getDate has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Helper.getTagDescription (cyclomatic 21) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:86— Helper.getTagDescription 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.
PanoramaInfo.fromMap (cyclomatic 20) lib/model/media/panorama.dart:17— PanoramaInfo.fromMap 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.
CollectionLens._applySection (cyclomatic 20) lib/model/source/collection_lens.dart:319— CollectionLens._applySection 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.
CollectionDraggableThumbLabel.build (cyclomatic 20) lib/widgets/collection/draggable_thumb_label.dart:17— CollectionDraggableThumbLabel.build has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_InkResponseState.build (cyclomatic 20) lib/widgets/common/basic/gestures/ink_well.dart:1055— _InkResponseState.build 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.
_AvesMagnifierState.onScaleEnd (cyclomatic 19) plugins/aves_magnifier/lib/src/core/core.dart:223— _AvesMagnifierState.onScaleEnd 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.
_CollectionAppBarState._buildMobileActions (cyclomatic 19) lib/widgets/collection/app_bar.dart:458— _CollectionAppBarState._buildMobileActions 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. This is NOT this file's highest cyclomatic complexity: _CollectionAppBarState._onActionSelected (cyclomatic 37) 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.
_MenuQuickChooserState._onPointerMove (cyclomatic 19) lib/widgets/common/action_controls/quick_choosers/common/menu.dart:246— _MenuQuickChooserState._onPointerMove 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.
_InkResponseState.updateHighlight (cyclomatic 19) lib/widgets/common/basic/gestures/ink_well.dart:735— _InkResponseState.updateHighlight 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.
_HistogramState._buildChart (cyclomatic 19) lib/widgets/stats/date/histogram.dart:201— _HistogramState._buildChart 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.
AssParser._parsePaths (cyclomatic 19) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:482— AssParser._parsePaths 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.
Helper.getDatePlus (cyclomatic 19) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:270— Helper.getDatePlus 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.
MpvVideoController._startListening (cyclomatic 18) plugins/aves_video_mpv/lib/src/controller_video.dart:102— MpvVideoController._startListening 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.
DiffMatchPatch.diff_cleanupSemantic (cyclomatic 18) lib/utils/diff_match.dart:695— DiffMatchPatch.diff_cleanupSemantic has cyclomatic complexity 18 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
EntryStorageMixin.doExport (cyclomatic 18) lib/widgets/common/action_mixins/entry_storage.dart:45— EntryStorageMixin.doExport 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.
_MetadataTabState.build (cyclomatic 18) lib/widgets/viewer/debug/metadata.dart:75— _MetadataTabState.build 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.
Mp4ParserHelper.extractBoxFields (cyclomatic 18) android/app/src/main/kotlin/deckers/thibault/aves/metadata/Mp4ParserHelper.kt:354— Mp4ParserHelper.extractBoxFields 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. This is NOT this file's highest cyclomatic complexity: Mp4ParserHelper.boxTypeMetadataKey (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.
SafePhotoshopReader.extract (cyclomatic 18) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePhotoshopReader.kt:19— SafePhotoshopReader.extract 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.
ImageProvider.deleteSingle (cyclomatic 18) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:230— ImageProvider.deleteSingle 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.
UnknownContentProvider.fetchSingle (cyclomatic 18) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.kt:21— UnknownContentProvider.fetchSingle 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.
NamingPattern.from (cyclomatic 17) lib/model/naming_pattern.dart:20— NamingPattern.from has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
MagnifierGestureRecognizer.handleEvent (cyclomatic 17) plugins/aves_magnifier/lib/src/core/scale_gesture_recognizer.dart:41— MagnifierGestureRecognizer.handleEvent 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.
_CoverSelectionDialogState.build (cyclomatic 17) lib/widgets/dialogs/filter_editors/cover_selection_dialog.dart:73— _CoverSelectionDialogState.build 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.
_BasicSectionState._buildChips (cyclomatic 17) lib/widgets/viewer/info/basic_section.dart:119— _BasicSectionState._buildChips 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.
AppAdapterHandler.pinShortcut (cyclomatic 17) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AppAdapterHandler.kt:391— AppAdapterHandler.pinShortcut 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.
MetadataFetchHandler.getMultimediaCatalogMetadataByMediaMetadataRetriever (cyclomatic 17) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:959— MetadataFetchHandler.getMultimediaCatalogMetadataByMediaMetadataRetriever 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.
ExifInterfaceHelper.fillMetadataExtractorDir (cyclomatic 17) android/app/src/main/kotlin/deckers/thibault/aves/metadata/ExifInterfaceHelper.kt:290— ExifInterfaceHelper.fillMetadataExtractorDir 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.
AvesEntry.applyNewFields (cyclomatic 16) lib/model/entry/entry.dart:423— AvesEntry.applyNewFields 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.
DiffMatchPatch._match_bitap (cyclomatic 16) lib/utils/diff_match.dart:1345— DiffMatchPatch._match_bitap has cyclomatic complexity 16 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
CalendarSectionLayoutBuilder.buildSectionLayout (cyclomatic 16) lib/widgets/common/grid/sections/calendar/section_layout_builder.dart:64— CalendarSectionLayoutBuilder.buildSectionLayout 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.
_ThumbnailImageState.build (cyclomatic 16) lib/widgets/common/thumbnail/image.dart:183— _ThumbnailImageState.build 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.
_LocationSectionState.build (cyclomatic 16) lib/widgets/viewer/info/location_section.dart:77— _LocationSectionState.build 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.
MediaSessionHandler.updateSession (cyclomatic 16) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MediaSessionHandler.kt:66— MediaSessionHandler.updateSession 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.
ImageProvider.convertSingle (cyclomatic 16) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:685— ImageProvider.convertSingle 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.
MediaStoreImageProvider.tryScanNewPathByMediaStore (cyclomatic 16) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:520— MediaStoreImageProvider.tryScanNewPathByMediaStore 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.
Repeated repair: lib/widgets/common/identity/aves_list_subtitle.dart lib/widgets/common/identity/aves_list_subtitle.dart:15— lib/widgets/common/identity/aves_list_subtitle.dart 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 1 (its worst body is AvesListSubtitle._defaultTextStyle at line 15), 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: “layout change fixes”; “layout change fixes”; “fixed list subtitle text style”. 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-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 16:31:51 +02:00' --until='2026-10-22 16:31:51 +02:00' --full-history --no-merges -- lib/widgets/common/identity/aves_list_subtitle.dart`: 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.
VideoMetadataFormatter.formatInfo (cognitive 195) lib/model/media/video/metadata.dart:174— VideoMetadataFormatter.formatInfo has cognitive complexity 195 (threshold 15). Drivers by points: if/else 34 (159 pts), ternaries 3 (16 pts), match/switch 2 (10 pts), boolean chains 6, error handling 1 (3 pts), loops 1 (nesting depth added 148). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MetadataFetchHandler.getAllMetadata (cognitive 176) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143— MetadataFetchHandler.getAllMetadata has cognitive complexity 176 (threshold 15). Drivers by points: if/else 45 (121 pts), match/switch 4 (19 pts), loops 7 (18 pts), boolean chains 9, error handling 5 (9 pts) (nesting depth added 106). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MetadataFetchHandler.getCatalogMetadataByMetadataExtractor (cognitive 131) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:639— MetadataFetchHandler.getCatalogMetadataByMetadataExtractor has cognitive complexity 131 (threshold 15). Drivers by points: if/else 34 (80 pts), loops 10 (26 pts), error handling 6 (14 pts), boolean chains 9, match/switch 1 (2 pts) (nesting depth added 71). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AssParser.parse (cognitive 119) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:49— AssParser.parse has cognitive complexity 119 (threshold 15). Drivers by points: if/else 31 (90 pts), ternaries 7 (22 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SafePngMetadataReader.processChunk (cognitive 84) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePngMetadataReader.kt:86— SafePngMetadataReader.processChunk has cognitive complexity 84 (threshold 15). Drivers by points: if/else 45 (67 pts), error handling 6 (16 pts), boolean chains 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MediaStoreImageProvider.fetchFrom (cognitive 78) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:205— MediaStoreImageProvider.fetchFrom has cognitive complexity 78 (threshold 15). Drivers by points: if/else 18 (59 pts), error handling 2 (8 pts), boolean chains 7, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 49). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_HomePageState._setup (cognitive 77) lib/widgets/home/home_page.dart:100— _HomePageState._setup has cognitive complexity 77 (threshold 15). Drivers by points: if/else 21 (56 pts), match/switch 4 (13 pts), ternaries 1 (4 pts), boolean chains 3, error handling 1 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DiffMatchPatch._diff_bisect (cognitive 61) lib/utils/diff_match.dart:302— DiffMatchPatch._diff_bisect has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (38 pts), boolean chains 12, loops 5 (11 pts) (nesting depth added 29). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
AGestureDetector.build (cognitive 57) lib/widgets/common/basic/gestures/gesture_detector.dart:829— AGestureDetector.build has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 49, 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.
ImageProvider.editMetadata (cognitive 53) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1823— ImageProvider.editMetadata has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (48 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DiffMatchPatch.diff_cleanupEfficiency (cognitive 52) lib/utils/diff_match.dart:918— DiffMatchPatch.diff_cleanupEfficiency has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 5 (17 pts), boolean chains 9, loops 1 (nesting depth added 26). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
EntryStorageMixin.doQuickMove (cognitive 51) lib/widgets/common/action_mixins/entry_storage.dart:191— EntryStorageMixin.doQuickMove has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (36 pts), ternaries 3 (8 pts), boolean chains 7 (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.
DiffMatchPatch.diff_cleanupMerge (cognitive 50) lib/utils/diff_match.dart:994— DiffMatchPatch.diff_cleanupMerge has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (42 pts), boolean chains 4, loops 2, match/switch 1 (2 pts) (nesting depth added 28). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
WallpaperButtons._getBytes (cognitive 49) lib/widgets/viewer/overlay/bottom/wallpaper_buttons.dart:106— WallpaperButtons._getBytes has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 2 (8 pts), ternaries 2 (6 pts), boolean chains 4, error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DiffMatchPatch._diff_cleanupSemanticLossless (cognitive 48) lib/utils/diff_match.dart:795— DiffMatchPatch._diff_cleanupSemanticLossless has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 16, loops 2 (4 pts) (nesting depth added 16). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
MediaStoreSource.refreshUris (cognitive 47) lib/model/source/media_store_source.dart:296— MediaStoreSource.refreshUris has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 3 (7 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
QueryFilter.fieldTest (cognitive 45) lib/model/filters/query.dart:127— QueryFilter.fieldTest has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 7 (13 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MetadataFetchHandler.getOverlayMetadata (cognitive 43) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1021— MetadataFetchHandler.getOverlayMetadata has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (28 pts), error handling 4 (8 pts), boolean chains 4, loops 1 (2 pts), match/switch 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.
ImageProvider.moveSingle (cognitive 41) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:395— ImageProvider.moveSingle has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 6, error handling 3 (6 pts), match/switch 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.
DiffMatchPatch.diff_cleanupSemantic (cognitive 40) lib/utils/diff_match.dart:695— DiffMatchPatch.diff_cleanupSemantic has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 5, ternaries 1 (4 pts), loops 2 (nesting depth added 20). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
VideoSubtitles.build (cognitive 40) lib/widgets/viewer/visual/video/subtitle/subtitle.dart:35— VideoSubtitles.build has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (21 pts), ternaries 8 (10 pts), match/switch 4 (8 pts), boolean chains 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.
MediaMetadataRetrieverHelper.getSafeDescription (cognitive 40) android/app/src/main/kotlin/deckers/thibault/aves/metadata/MediaMetadataRetrieverHelper.kt:126— MediaMetadataRetrieverHelper.getSafeDescription has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (29 pts), match/switch 4 (11 pts) (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.
_EntryPageViewState._buildVideoView (cognitive 39) lib/widgets/viewer/visual/entry_page_view.dart:199— _EntryPageViewState._buildVideoView has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 5, ternaries 2 (5 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Settings.import (cognitive 38) lib/model/settings/settings.dart:307— Settings.import has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (36 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DiffMatchPatch._match_bitap (cognitive 38) lib/utils/diff_match.dart:1345— DiffMatchPatch._match_bitap has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 19). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
_AvesFilterChipState.build (cognitive 38) lib/widgets/common/identity/aves_filter_chip.dart:205— _AvesFilterChipState.build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 10 (15 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ImageProvider.editExifDate (cognitive 38) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1700— ImageProvider.editExifDate has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (30 pts), match/switch 3 (7 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AlbumListPage.groupToSections (cognitive 37) lib/widgets/filter_grids/albums_page.dart:152— AlbumListPage.groupToSections has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (26 pts), match/switch 3 (6 pts), boolean chains 2, ternaries 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.
GridThemeData._defaultIconBuilder (cognitive 35) lib/widgets/common/grid/theme.dart:89— GridThemeData._defaultIconBuilder has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 13 (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.
MainActivity.extractIntentData (cognitive 35) android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt:364— MainActivity.extractIntentData has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 17). 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.
ImageProvider.convertSingle (cognitive 35) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:685— ImageProvider.convertSingle has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (29 pts), match/switch 2 (5 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.
_AvesMagnifierState.onScaleEnd (cognitive 34) plugins/aves_magnifier/lib/src/core/core.dart:223— _AvesMagnifierState.onScaleEnd has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EntrySetActionDelegate.isVisible (cognitive 34) lib/widgets/collection/entry_set_action_delegate.dart:71— EntrySetActionDelegate.isVisible has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 33, match/switch 1. 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.
_EditEntryLocationDialogState._updateGpxMapping (cognitive 33) lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:415— _EditEntryLocationDialogState._updateGpxMapping has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_EntryViewerStackState._handleNotification (cognitive 33) lib/widgets/viewer/entry_viewer_stack.dart:560— _EntryViewerStackState._handleNotification has cognitive complexity 33 (threshold 15). Drivers by points: if/else 24 (31 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
MetadataFetchHandler.getDate (cognitive 33) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1411— MetadataFetchHandler.getDate has cognitive complexity 33 (threshold 15). Drivers by points: loops 5 (16 pts), error handling 3 (6 pts), if/else 4 (6 pts), match/switch 2 (4 pts), boolean chains 1 (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.
Helper.getDatePlus (cognitive 33) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:270— Helper.getDatePlus has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 2 (5 pts), match/switch 1 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CollectionSource.analyze (cognitive 32) lib/model/source/collection_source.dart:518— CollectionSource.analyze has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 2 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AssParser._parsePaths (cognitive 32) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:482— AssParser._parsePaths has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_OverlaySnackBarState.build (cognitive 31) lib/widgets/common/action_mixins/overlay_snack_bar.dart:316— _OverlaySnackBarState.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 10, 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.
_RenderSliverKnownExtentBoxAdaptor.performLayout (cognitive 31) lib/widgets/common/grid/sliver.dart:139— _RenderSliverKnownExtentBoxAdaptor.performLayout has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, ternaries 3 (4 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GeoUtils.epsgToProj4 (cognitive 30) plugins/aves_map/lib/src/geo_utils.dart:44— GeoUtils.epsgToProj4 has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 13 (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.
_CollectionScrollViewState._getScrollCrumbs (cognitive 30) lib/widgets/collection/collection_grid.dart:691— _CollectionScrollViewState._getScrollCrumbs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (20 pts), ternaries 1 (5 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_MenuQuickChooserState._onPointerMove (cognitive 30) lib/widgets/common/action_controls/quick_choosers/common/menu.dart:246— _MenuQuickChooserState._onPointerMove has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 8 (10 pts), boolean chains 6 (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.
ImageProvider.deleteSingle (cognitive 30) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:230— ImageProvider.deleteSingle has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SafePhotoshopReader.extract (cognitive 29) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafePhotoshopReader.kt:19— SafePhotoshopReader.extract has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (7 pts), match/switch 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CropperState._handleOutline (cognitive 28) lib/widgets/editor/transform/cropper.dart:231— _CropperState._handleOutline has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 12 (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.
UnknownContentProvider.fetchSingle (cognitive 28) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/UnknownContentProvider.kt:21— UnknownContentProvider.fetchSingle has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 4 (7 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MagnifierGestureRecognizer.handleEvent (cognitive 27) plugins/aves_magnifier/lib/src/core/scale_gesture_recognizer.dart:41— MagnifierGestureRecognizer.handleEvent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_GeoMapState._updateItemTracks (cognitive 27) lib/widgets/common/map/geo_map.dart:370— _GeoMapState._updateItemTracks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (23 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AppAdapterHandler.pinShortcut (cognitive 26) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AppAdapterHandler.kt:391— AppAdapterHandler.pinShortcut has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ImageProvider.moveMultiple (cognitive 26) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:305— ImageProvider.moveMultiple has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
PanoramaInfo.fromMap (cognitive 25) lib/model/media/panorama.dart:17— PanoramaInfo.fromMap has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, ternaries 2 (4 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.
EntryStorageMixin.doExport (cognitive 25) lib/widgets/common/action_mixins/entry_storage.dart:45— EntryStorageMixin.doExport has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 3, ternaries 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.
_GridSelectionGestureDetectorState._toggleSelectionToIndex (cognitive 25) lib/widgets/common/grid/selector.dart:213— _GridSelectionGestureDetectorState._toggleSelectionToIndex has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2, ternaries 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.
MetadataFetchHandler.getMultimediaCatalogMetadataByMediaMetadataRetriever (cognitive 25) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:959— MetadataFetchHandler.getMultimediaCatalogMetadataByMediaMetadataRetriever has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_AvesAppContentDecoratorState._onSourceStateChanged (cognitive 24) lib/widgets/aves_app.dart:812— _AvesAppContentDecoratorState._onSourceStateChanged has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 2 (8 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_DebugAppDatabaseSectionState.build (cognitive 24) lib/widgets/debug/database.dart:50— _DebugAppDatabaseSectionState.build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24. 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.
SingleEntryEditorMixin.edit (cognitive 24) lib/widgets/viewer/action/single_entry_editor.dart:20— SingleEntryEditorMixin.edit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2, error handling 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_DbTabState.build (cognitive 24) lib/widgets/viewer/debug/db.dart:54— _DbTabState.build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, ternaries 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.
MetadataFetchHandler.getCatalogMetadata (cognitive 24) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:533— MetadataFetchHandler.getCatalogMetadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ImageProvider.captureFrame (cognitive 24) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:895— ImageProvider.captureFrame has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 3 (4 pts), boolean chains 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.
MpvVideoController._startListening (cognitive 23) plugins/aves_video_mpv/lib/src/controller_video.dart:102— MpvVideoController._startListening has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MpvVideoMetadataFetcher._describeAllMetadataFields (cognitive 23) plugins/aves_video_mpv/lib/src/metadata.dart:36— MpvVideoMetadataFetcher._describeAllMetadataFields has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DiffMatchPatch.diff_fromDelta (cognitive 23) lib/utils/diff_match.dart:1246— DiffMatchPatch.diff_fromDelta has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 3 (9 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 12). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
EntryViewControllerMixin._initMultiPageController (cognitive 22) lib/widgets/viewer/visual/controller_mixin.dart:142— EntryViewControllerMixin._initMultiPageController has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 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.
ThumbnailFetcher.fetch (cognitive 22) android/app/src/main/kotlin/deckers/thibault/aves/decoding/ThumbnailFetcher.kt:66— ThumbnailFetcher.fetch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SafeXmpReader.processExtendedXMPChunk (cognitive 22) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/SafeXmpReader.kt:111— SafeXmpReader.processExtendedXMPChunk has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MediaStoreImageProvider.tryScanNewPathByMediaStore (cognitive 22) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:520— MediaStoreImageProvider.tryScanNewPathByMediaStore has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, error handling 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.
CollectionLens._applySection (cognitive 21) lib/model/source/collection_lens.dart:319— CollectionLens._applySection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (6 pts), match/switch 2 (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.
TrashMixin.recoverUntrackedTrashItems (cognitive 21) lib/model/source/trash.dart:43— TrashMixin.recoverUntrackedTrashItems has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_InkResponseState.updateHighlight (cognitive 21) lib/widgets/common/basic/gestures/ink_well.dart:735— _InkResponseState.updateHighlight has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (5 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CropperState._applyCropRatioToOutline (cognitive 21) lib/widgets/editor/transform/cropper.dart:613— _CropperState._applyCropRatioToOutline has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 4, match/switch 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_ViewerVerticalPageViewState._buildImagePage (cognitive 21) lib/widgets/viewer/entry_vertical_pager.dart:214— _ViewerVerticalPageViewState._buildImagePage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AssParser._parseClip (cognitive 21) lib/widgets/viewer/visual/video/subtitle/ass_parser.dart:538— AssParser._parseClip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MetadataFetchHandler.getDescriptionByMetadataExtractor (cognitive 21) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1119— MetadataFetchHandler.getDescriptionByMetadataExtractor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (7 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Helper.extractPngProfile (cognitive 21) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:446— Helper.extractPngProfile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
FileImageProvider.fetchSingle (cognitive 21) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/FileImageProvider.kt:19— FileImageProvider.fetchSingle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2 (4 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.
Covers.removeAll (cognitive 20) lib/model/covers.dart:86— Covers.removeAll has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CollectionAppBarState._buildMobileActions (cognitive 20) lib/widgets/collection/app_bar.dart:458— _CollectionAppBarState._buildMobileActions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, ternaries 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.
CalendarSectionLayoutBuilder.buildSectionLayout (cognitive 20) lib/widgets/common/grid/sections/calendar/section_layout_builder.dart:64— CalendarSectionLayoutBuilder.buildSectionLayout has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 7 (8 pts), loops 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.
_CoverSelectionDialogState.build (cognitive 20) lib/widgets/dialogs/filter_editors/cover_selection_dialog.dart:73— _CoverSelectionDialogState.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5, boolean chains 3 (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.
_EditVaultDialogState.build (cognitive 20) lib/widgets/dialogs/filter_editors/edit_vault_dialog.dart:76— _EditVaultDialogState.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AlbumChipSetActionDelegate.isVisible (cognitive 20) lib/widgets/filter_grids/common/action_delegates/album_set.dart:92— AlbumChipSetActionDelegate.isVisible has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 18, if/else 1, match/switch 1. 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.
AlbumChipSetActionDelegate._rename (cognitive 20) lib/widgets/filter_grids/common/action_delegates/album_set.dart:437— AlbumChipSetActionDelegate._rename has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_MetadataTabState.build (cognitive 20) lib/widgets/viewer/debug/metadata.dart:75— _MetadataTabState.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 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.
DebugHandler.getMetadataExtractorSummary (cognitive 20) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:312— DebugHandler.getMetadataExtractorSummary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 3 (6 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MetadataFetchHandler.getExifFields (cognitive 20) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1552— MetadataFetchHandler.getExifFields has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 5 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Mp4ParserHelper.extractBoxFields (cognitive 20) android/app/src/main/kotlin/deckers/thibault/aves/metadata/Mp4ParserHelper.kt:354— Mp4ParserHelper.extractBoxFields has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
StorageUtils.findVolumePaths (cognitive 20) android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:187— StorageUtils.findVolumePaths has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_ThumbnailImageState.build (cognitive 19) lib/widgets/common/thumbnail/image.dart:183— _ThumbnailImageState.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 6 (7 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
EntryPrinter._buildImageWidgets (cognitive 19) lib/widgets/viewer/action/printer.dart:70— EntryPrinter._buildImageWidgets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MetadataFetchHandler.getGeoTiffInfo (cognitive 19) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1155— MetadataFetchHandler.getGeoTiffInfo has cognitive complexity 19 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 4 (6 pts), match/switch 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TiffFetcher.loadData (cognitive 19) android/app/src/main/kotlin/deckers/thibault/aves/glide/TiffGlideModule.kt:49— TiffFetcher.loadData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (3 pts), error handling 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.
ExifInterfaceHelper.describeDir (cognitive 19) android/app/src/main/kotlin/deckers/thibault/aves/metadata/ExifInterfaceHelper.kt:260— ExifInterfaceHelper.describeDir has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
PixyMetaHelper.copyIptcXmp (cognitive 19) android/app/src/main/kotlin/deckers/thibault/aves/metadata/PixyMetaHelper.kt:113— PixyMetaHelper.copyIptcXmp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SourceEntry.fillByMetadataExtractor (cognitive 19) android/app/src/main/kotlin/deckers/thibault/aves/model/SourceEntry.kt:162— SourceEntry.fillByMetadataExtractor has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (12 pts), error handling 3, if/else 3, boolean chains 1 (nesting depth added 6). 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.
CollectionSource.updateAfterMove (cognitive 18) lib/model/source/collection_source.dart:364— CollectionSource.updateAfterMove has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SvgMetadataService.getSize (cognitive 18) lib/services/metadata/svg_metadata_service.dart:19— SvgMetadataService.getSize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, ternaries 1 (2 pts), 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.
_ConvertEntryDialogState._buildConvertContent (cognitive 18) lib/widgets/dialogs/convert_entry_dialog.dart:182— _ConvertEntryDialogState._buildConvertContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, match/switch 2 (4 pts), boolean chains 3, ternaries 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.
SettingsActionDelegate._import (cognitive 18) lib/widgets/settings/settings_action_delegate.dart:77— SettingsActionDelegate._import has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (6 pts), boolean chains 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.
_HistogramState._buildChart (cognitive 18) lib/widgets/stats/date/histogram.dart:201— _HistogramState._buildChart has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 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.
EntryActionDelegate.isVisible (cognitive 18) lib/widgets/viewer/action/entry_action_delegate.dart:56— EntryActionDelegate.isVisible has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, match/switch 2 (4 pts), if/else 3, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_LocationSectionState.build (cognitive 18) lib/widgets/viewer/info/location_section.dart:77— _LocationSectionState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 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.
ViewerDetailOverlayContent._buildRows (cognitive 18) lib/widgets/viewer/overlay/top/details/details.dart:165— ViewerDetailOverlayContent._buildRows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 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.
EntryViewControllerMixin.updatePictureInPicture (cognitive 18) lib/widgets/viewer/visual/controller_mixin.dart:232— EntryViewControllerMixin.updatePictureInPicture has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DebugHandler.getCodecs (cognitive 18) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:106— DebugHandler.getCodecs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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.
MetadataFetchHandler.resolveMimeType (cognitive 18) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:603— MetadataFetchHandler.resolveMimeType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
StorageHandler.getStorageVolumes (cognitive 18) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/StorageHandler.kt:68— StorageHandler.getStorageVolumes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RegionFetcher.fetch (cognitive 18) android/app/src/main/kotlin/deckers/thibault/aves/decoding/RegionFetcher.kt:41— RegionFetcher.fetch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, error handling 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.
ImageProvider.renameMultiple (cognitive 18) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:559— ImageProvider.renameMultiple has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (14 pts), error handling 1 (3 pts), loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Covers.import (cognitive 17) lib/model/covers.dart:278— Covers.import has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FilterGrouping._sanitize (cognitive 17) lib/model/grouping/common.dart:232— FilterGrouping._sanitize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Vaults.recoverUntrackedItems (cognitive 17) lib/model/vaults/vaults.dart:172— Vaults.recoverUntrackedItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 2 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ZoomedBounds.fromPoints (cognitive 17) plugins/aves_map/lib/src/zoomed_bounds.dart:36— ZoomedBounds.fromPoints has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VaultAwareMixin._tryUnlock (cognitive 17) lib/widgets/common/action_mixins/vault_aware.dart:17— VaultAwareMixin._tryUnlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 1 (2 pts), 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.
_InkResponseState.build (cognitive 17) lib/widgets/common/basic/gestures/ink_well.dart:1055— _InkResponseState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 13, boolean chains 2, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ExifInterfaceHelper.fillMetadataExtractorDir (cognitive 17) android/app/src/main/kotlin/deckers/thibault/aves/metadata/ExifInterfaceHelper.kt:290— ExifInterfaceHelper.fillMetadataExtractorDir has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
StorageUtils.getVolumePathFromTreeDocumentUriUuid (cognitive 17) android/app/src/main/kotlin/deckers/thibault/aves/storage/StorageUtils.kt:302— StorageUtils.getVolumePathFromTreeDocumentUriUuid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AvesEntry.applyNewFields (cognitive 16) lib/model/entry/entry.dart:423— AvesEntry.applyNewFields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15 (16 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
VideoMetadataFormatter.getLoadingMetadata (cognitive 16) lib/model/media/video/metadata.dart:52— VideoMetadataFormatter.getLoadingMetadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MpvVideoController.getSelectedTrack (cognitive 16) plugins/aves_video_mpv/lib/src/controller_video.dart:469— MpvVideoController.getSelectedTrack has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (6 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_CollectionAppBarState.build (cognitive 16) lib/widgets/collection/app_bar.dart:180— _CollectionAppBarState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PermissionAwareMixin.checkStoragePermissionForAlbums (cognitive 16) lib/widgets/common/action_mixins/permission_aware.dart:23— PermissionAwareMixin.checkStoragePermissionForAlbums has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PermissionAwareMixin._requestSafPermission (cognitive 16) lib/widgets/common/action_mixins/permission_aware.dart:96— PermissionAwareMixin._requestSafPermission has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (3 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.
FixedExtentGridPainter.paint (cognitive 16) lib/widgets/common/grid/sections/fixed/scale_grid.dart:17— FixedExtentGridPainter.paint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (2 pts), 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.
_GeoMapState._initBounds (cognitive 16) lib/widgets/common/map/geo_map.dart:283— _GeoMapState._initBounds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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.
_BasicSectionState._buildChips (cognitive 16) lib/widgets/viewer/info/basic_section.dart:119— _BasicSectionState._buildChips has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 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.
_ViewerButtonRowContentState.build (cognitive 16) lib/widgets/viewer/overlay/bottom/viewer_buttons.dart:236— _ViewerButtonRowContentState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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.
_EntryPageViewState._handleSideSingleTap (cognitive 16) lib/widgets/viewer/visual/entry_page_view.dart:470— _EntryPageViewState._handleSideSingleTap has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EmbeddedDataHandler.extractXmpDataProp (cognitive 16) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:272— EmbeddedDataHandler.extractXmpDataProp has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 5 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MultiPage.getJpegMpfBaseOffset (cognitive 16) android/app/src/main/kotlin/deckers/thibault/aves/metadata/MultiPage.kt:156— MultiPage.getJpegMpfBaseOffset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Helper.extractGeoKeys (cognitive 16) android/app/src/main/kotlin/deckers/thibault/aves/metadata/metadataextractor/Helper.kt:394— Helper.extractGeoKeys has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 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.
XMP.getSafeStructField (cognitive 16) android/app/src/main/kotlin/deckers/thibault/aves/metadata/xmp/XMP.kt:282— XMP.getSafeStructField has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 1 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileUtils.move (cognitive 16) android/app/src/main/kotlin/deckers/thibault/aves/utils/FileUtils.kt:50— FileUtils.move has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (16 pts) (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D4 · Code Duplication· Near-duplicate member family (5 members, 17 shared lines) · ×1
Near-duplicate member family (5 members, 17 shared lines) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:56— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:56-88 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:90-129 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:131-166 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:168-199 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:201-234 — These 5 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Near-duplicate member pair (33 shared lines) lib/model/source/location/location.dart:67— lib/model/source/location/location.dart:67-115 | lib/model/source/location/location.dart:119-200 — 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 (31 shared lines) lib/widgets/collection/grid/list_details_theme.dart:18— lib/widgets/collection/grid/list_details_theme.dart:18-89 | lib/widgets/filter_grids/common/list_details_theme.dart:27-98 — These two members are variants of one another: 31 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (15 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (15 members, 50+ identical tokens) lib/ref/metadata/exif.dart:38— lib/ref/metadata/exif.dart:38-127 | lib/ref/metadata/exif.dart:168-191 | lib/ref/metadata/exif.dart:209-260 | lib/ref/metadata/exif.dart:263-286 | lib/ref/metadata/exif.dart:289-324 | lib/ref/metadata/exif.dart:375-398 | lib/ref/metadata/exif.dart:443-464 | lib/widgets/viewer/info/metadata/geotiff.dart:92-451 | lib/widgets/viewer/info/metadata/geotiff.dart:453-774 | lib/widgets/viewer/info/metadata/geotiff.dart:776-855 | lib/widgets/viewer/info/metadata/geotiff.dart:857-2856 | lib/widgets/viewer/info/metadata/geotiff.dart:2858-3721 | lib/widgets/viewer/info/metadata/geotiff.dart:3723-3788 | lib/widgets/viewer/info/metadata/geotiff.dart:3790-3845 | lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart:29-52 — These 15 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 15 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 15 times.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (9 members, 50+ identical tokens) lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:80— lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:80-144 | lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:109-166 | lib/widgets/dialogs/entry_editors/manage_media_dialog.dart:45-76 | lib/widgets/dialogs/entry_editors/rename_entry_dialog.dart:44-84 | lib/widgets/dialogs/filter_editors/create_group_dialog.dart:40-74 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:38-69 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:43-76 | lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:42-73 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:38-69 — These 9 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 9 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 9 times.
D4 · Code Duplication· Members sharing a duplicated core (8 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (8 members, 50+ identical tokens) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:253— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:253-282 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:312-357 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:61-92 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143-495 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:533-592 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1155-1197 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1232-1285 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1316-1371 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (7 members, 50+ identical tokens) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:143-495 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:606-637 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:643-930 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1021-1112 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1411-1511 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1552-1607 | android/app/src/main/kotlin/deckers/thibault/aves/metadata/MultiPage.kt:111-153 — 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.
Duplicated block (32 lines × 2) lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:308— lib/widgets/dialogs/pick_dialogs/album_pick_page.dart:308-339 | lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart:280-311 — before extracting anything, compare `lib/widgets/dialogs/pick_dialogs/album_pick_page.dart` and `lib/widgets/dialogs/pick_dialogs/tag_pick_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 (27 lines × 2) lib/model/db/db_sqflite_upgrade.dart:244— lib/model/db/db_sqflite_upgrade.dart:244-270 | lib/model/db/db_sqflite_upgrade.dart:397-423 — both copies are in the same file, so extract the 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–25 lines × 3) lib/model/db/db_sqflite_upgrade.dart:203— lib/model/db/db_sqflite_upgrade.dart:203-225 | lib/model/db/db_sqflite_upgrade.dart:373-396 | lib/model/db/db_sqflite_upgrade.dart:545-569 — 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 (23 lines × 10) lib/ref/metadata/exif.dart:105— lib/ref/metadata/exif.dart:105-127 | lib/ref/metadata/exif.dart:238-260 | lib/ref/metadata/exif.dart:302-324 | lib/widgets/viewer/info/metadata/geotiff.dart:429-451 | lib/widgets/viewer/info/metadata/geotiff.dart:752-774 | lib/widgets/viewer/info/metadata/geotiff.dart:833-855 | lib/widgets/viewer/info/metadata/geotiff.dart:2834-2856 | lib/widgets/viewer/info/metadata/geotiff.dart:3699-3721 | lib/widgets/viewer/info/metadata/geotiff.dart:3766-3788 | lib/widgets/viewer/info/metadata/geotiff.dart:3823-3845 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/geotiff.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 10) lib/ref/metadata/exif.dart:41— lib/ref/metadata/exif.dart:41-62 | lib/ref/metadata/exif.dart:212-233 | lib/ref/metadata/exif.dart:292-313 | lib/widgets/viewer/info/metadata/geotiff.dart:95-116 | lib/widgets/viewer/info/metadata/geotiff.dart:456-477 | lib/widgets/viewer/info/metadata/geotiff.dart:779-800 | lib/widgets/viewer/info/metadata/geotiff.dart:860-881 | lib/widgets/viewer/info/metadata/geotiff.dart:2861-2882 | lib/widgets/viewer/info/metadata/geotiff.dart:3726-3747 | lib/widgets/viewer/info/metadata/geotiff.dart:3793-3814 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/geotiff.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 4) lib/ref/metadata/exif.dart:171— lib/ref/metadata/exif.dart:171-191 | lib/ref/metadata/exif.dart:266-286 | lib/ref/metadata/exif.dart:378-398 | lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart:32-52 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19–20 lines × 2) lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:125— lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:125-144 | lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:148-166 — before extracting anything, compare `lib/widgets/dialogs/entry_editors/edit_date_dialog.dart` and `lib/widgets/dialogs/entry_editors/edit_location_dialog.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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 (18 lines × 14) lib/ref/metadata/exif.dart:40— lib/ref/metadata/exif.dart:40-57 | lib/ref/metadata/exif.dart:170-187 | lib/ref/metadata/exif.dart:211-228 | lib/ref/metadata/exif.dart:265-282 | lib/ref/metadata/exif.dart:291-308 | lib/ref/metadata/exif.dart:377-394 | lib/widgets/viewer/info/metadata/geotiff.dart:94-111 | lib/widgets/viewer/info/metadata/geotiff.dart:455-472 | lib/widgets/viewer/info/metadata/geotiff.dart:778-795 | lib/widgets/viewer/info/metadata/geotiff.dart:859-876 | lib/widgets/viewer/info/metadata/geotiff.dart:2860-2877 | lib/widgets/viewer/info/metadata/geotiff.dart:3725-3742 | lib/widgets/viewer/info/metadata/geotiff.dart:3792-3809 | lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart:31-48 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/geotiff.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 15) lib/ref/metadata/exif.dart:39— lib/ref/metadata/exif.dart:39-55 | lib/ref/metadata/exif.dart:169-185 | lib/ref/metadata/exif.dart:210-226 | lib/ref/metadata/exif.dart:264-280 | lib/ref/metadata/exif.dart:290-306 | lib/ref/metadata/exif.dart:376-392 | lib/ref/metadata/exif.dart:444-460 | lib/widgets/viewer/info/metadata/geotiff.dart:93-109 | lib/widgets/viewer/info/metadata/geotiff.dart:454-470 | lib/widgets/viewer/info/metadata/geotiff.dart:777-793 | lib/widgets/viewer/info/metadata/geotiff.dart:858-874 | lib/widgets/viewer/info/metadata/geotiff.dart:2859-2875 | lib/widgets/viewer/info/metadata/geotiff.dart:3724-3740 | lib/widgets/viewer/info/metadata/geotiff.dart:3791-3807 | lib/widgets/viewer/info/metadata/xmp_ns/photoshop.dart:30-46 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/geotiff.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) lib/widgets/collection/app_bar.dart:306— lib/widgets/collection/app_bar.dart:306-321 | lib/widgets/filter_grids/common/app_bar.dart:271-286 — before extracting anything, compare `lib/widgets/collection/app_bar.dart` and `lib/widgets/filter_grids/common/app_bar.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15–16 lines × 2) lib/widgets/map/address_row.dart:68— lib/widgets/map/address_row.dart:68-82 | lib/widgets/map/date_row.dart:24-39 — 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 (15 lines × 5) lib/widgets/dialogs/entry_editors/manage_media_dialog.dart:62— lib/widgets/dialogs/entry_editors/manage_media_dialog.dart:62-76 | lib/widgets/dialogs/entry_editors/rename_entry_dialog.dart:70-84 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:55-69 | lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:59-73 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:55-69 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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 × 4) lib/ref/metadata/exif.dart:416— lib/ref/metadata/exif.dart:416-430 | lib/ref/metadata/exif.dart:482-496 | lib/ref/metadata/exif.dart:527-541 | lib/widgets/viewer/info/metadata/geotiff.dart:61-75 — before extracting anything, compare `lib/ref/metadata/exif.dart` and `lib/widgets/viewer/info/metadata/geotiff.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 2) lib/widgets/collection/grid/list_details_theme.dart:48— lib/widgets/collection/grid/list_details_theme.dart:48-62 | lib/widgets/filter_grids/common/list_details_theme.dart:56-69 — before extracting anything, compare `lib/widgets/collection/grid/list_details_theme.dart` and `lib/widgets/filter_grids/common/list_details_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13–14 lines × 3) lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:127— lib/widgets/dialogs/entry_editors/edit_date_dialog.dart:127-139 | lib/widgets/dialogs/entry_editors/edit_location_dialog.dart:149-161 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:63-76 — before extracting anything, compare `lib/widgets/dialogs/entry_editors/edit_date_dialog.dart` and `lib/widgets/dialogs/entry_editors/edit_location_dialog.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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–14 lines × 2) lib/services/metadata/metadata_fetch_service.dart:115— lib/services/metadata/metadata_fetch_service.dart:115-128 | lib/services/metadata/metadata_fetch_service.dart:293-300 — both copies are in the same file, so extract the 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–14 lines × 2) lib/widgets/viewer/info/basic_section.dart:155— lib/widgets/viewer/info/basic_section.dart:155-167 | lib/widgets/viewer/info/location_section.dart:129-142 — 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 × 5) lib/widgets/dialogs/filter_editors/create_group_dialog.dart:55— lib/widgets/dialogs/filter_editors/create_group_dialog.dart:55-67 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:50-62 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:57-69 | lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:54-66 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:50-62 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/create_group_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_group_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (11 lines × 6) lib/widgets/debug/database.dart:109— lib/widgets/debug/database.dart:109-119 | lib/widgets/debug/database.dart:134-144 | lib/widgets/debug/database.dart:159-169 | lib/widgets/debug/database.dart:180-190 | lib/widgets/debug/database.dart:301-311 | lib/widgets/debug/database.dart:322-332 — 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.
Duplicated block (11 lines × 4) lib/model/source/location/country.dart:11— lib/model/source/location/country.dart:11-21 | lib/model/source/location/place.dart:11-21 | lib/model/source/location/state.dart:11-21 | lib/model/source/tag.dart:106-116 — 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 (11 lines × 3) lib/widgets/collection/collection_page.dart:139— lib/widgets/collection/collection_page.dart:139-149 | lib/widgets/explorer/explorer_page.dart:129-139 | lib/widgets/filter_grids/common/filter_grid_page.dart:143-153 — 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 (9–10 lines × 2) lib/widgets/collection/grid/list_details_theme.dart:21— lib/widgets/collection/grid/list_details_theme.dart:21-29 | lib/widgets/filter_grids/common/list_details_theme.dart:30-39 — before extracting anything, compare `lib/widgets/collection/grid/list_details_theme.dart` and `lib/widgets/filter_grids/common/list_details_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7–10 lines × 2) lib/widgets/collection/grid/list_details_theme.dart:37— lib/widgets/collection/grid/list_details_theme.dart:37-46 | lib/widgets/filter_grids/common/list_details_theme.dart:48-54 — before extracting anything, compare `lib/widgets/collection/grid/list_details_theme.dart` and `lib/widgets/filter_grids/common/list_details_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 (8–9 lines × 5) lib/widgets/viewer/debug/db.dart:83— lib/widgets/viewer/debug/db.dart:83-90 | lib/widgets/viewer/debug/db.dart:138-146 | lib/widgets/viewer/debug/db.dart:157-165 | lib/widgets/viewer/debug/db.dart:176-183 | lib/widgets/viewer/debug/db.dart:207-215 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 10) lib/widgets/debug/database.dart:108— lib/widgets/debug/database.dart:108-115 | lib/widgets/debug/database.dart:133-140 | lib/widgets/debug/database.dart:158-165 | lib/widgets/debug/database.dart:179-186 | lib/widgets/debug/database.dart:200-207 | lib/widgets/debug/database.dart:221-228 | lib/widgets/debug/database.dart:242-249 | lib/widgets/debug/database.dart:271-278 | lib/widgets/debug/database.dart:300-307 | lib/widgets/debug/database.dart:321-328 — all 10 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 (8 lines × 3) lib/services/media/embedded_data_service.dart:77— lib/services/media/embedded_data_service.dart:77-84 | lib/services/media/embedded_data_service.dart:94-101 | lib/services/media/embedded_data_service.dart:128-135 — 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 (4–5 lines × 4) lib/widgets/collection/entry_set_action_delegate.dart:365— lib/widgets/collection/entry_set_action_delegate.dart:365-368 | lib/widgets/common/action_mixins/entry_storage.dart:297-301 | lib/widgets/common/action_mixins/entry_storage.dart:460-464 | lib/widgets/filter_grids/common/action_delegates/album_set.dart:527-531 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (5 lines × 3) lib/widgets/common/identity/aves_logo.dart:68— lib/widgets/common/identity/aves_logo.dart:68-72 | lib/widgets/common/identity/aves_logo.dart:81-85 | lib/widgets/common/identity/aves_logo.dart:100-104 — 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 (3–5 lines × 5) lib/widgets/filter_grids/albums_page.dart:49— lib/widgets/filter_grids/albums_page.dart:49-51 | lib/widgets/filter_grids/countries_page.dart:27-31 | lib/widgets/filter_grids/places_page.dart:27-31 | lib/widgets/filter_grids/states_page.dart:33-37 | lib/widgets/filter_grids/tags_page.dart:44-46 — 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 5 call sites, so a change lands once.
Duplicated block (8 lines × 4) lib/widgets/collection/app_bar.dart:126— lib/widgets/collection/app_bar.dart:126-133 | lib/widgets/common/bars/floating_bar.dart:28-35 | lib/widgets/filter_grids/common/app_bar.dart:120-127 | lib/widgets/viewer/entry_viewer_stack.dart:306-313 — before extracting anything, compare `lib/widgets/collection/app_bar.dart` and `lib/widgets/filter_grids/common/app_bar.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 7) lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:24— lib/widgets/dialogs/filter_editors/create_dynamic_album_dialog.dart:24-30 | lib/widgets/dialogs/filter_editors/create_group_dialog.dart:32-38 | lib/widgets/dialogs/filter_editors/edit_vault_dialog.dart:68-74 | lib/widgets/dialogs/filter_editors/rename_dynamic_album_dialog.dart:30-36 | lib/widgets/dialogs/filter_editors/rename_group_dialog.dart:35-41 | lib/widgets/dialogs/filter_editors/rename_stored_album_dialog.dart:34-40 | lib/widgets/dialogs/filter_editors/rename_tag_dialog.dart:30-36 — before extracting anything, compare `lib/widgets/dialogs/filter_editors/create_group_dialog.dart` and `lib/widgets/dialogs/filter_editors/rename_group_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) lib/model/filters/covered/tag.dart:25— lib/model/filters/covered/tag.dart:25-30 | lib/model/filters/mime.dart:46-51 | lib/model/filters/path.dart:33-38 — 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 (6 lines × 13) lib/widgets/settings/navigation/navigation.dart:135— lib/widgets/settings/navigation/navigation.dart:135-140 | lib/widgets/settings/navigation/navigation.dart:150-155 | lib/widgets/settings/navigation/navigation.dart:165-170 | lib/widgets/settings/privacy/privacy.dart:161-166 | lib/widgets/settings/privacy/privacy.dart:176-181 | lib/widgets/settings/thumbnails/thumbnails.dart:45-50 | lib/widgets/settings/thumbnails/thumbnails.dart:60-65 | lib/widgets/settings/video/video.dart:75-80 | lib/widgets/settings/video/video.dart:90-95 | lib/widgets/settings/video/video.dart:105-110 | lib/widgets/settings/viewer/viewer.dart:55-60 | lib/widgets/settings/viewer/viewer.dart:70-75 | lib/widgets/settings/viewer/viewer.dart:85-90 — there are 13 copies across 5 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 13 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (28 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1208— android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1208-1235 | android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1313-1340 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1208` 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 (25–26 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1154— android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1154-1179 | android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1263-1287 — both copies are in the same file, so extract the 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 `android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:1154` 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–19 lines × 2) android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:254— android/app/src/main/kotlin/deckers/thibault/aves/model/provider/ImageProvider.kt:254-272 | android/app/src/main/kotlin/deckers/thibault/aves/model/provider/MediaStoreImageProvider.kt:733-748 — 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 × 4) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:394— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:394-406 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:865-877 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1078-1090 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1577-1589 — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:394` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:862` calls `getDirectoriesOfType`, `forEach` and `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:391` 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 × 5) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:60— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:60-66 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:98-104 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:137-143 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:172-178 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:206-212 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:60` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 5) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:69— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:69-78 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:107-116 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:146-155 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:181-190 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:215-224 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — 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 `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataEditHandler.kt:69` 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 × 8) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:256— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:256-261 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt:315-320 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:64-69 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:146-151 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:536-541 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1158-1163 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1235-1240 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt:1319-1324 — there are 8 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 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 block (5 lines × 5) android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:95— android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:95-99 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:153-157 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:190-194 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:214-218 | android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/EmbeddedDataHandler.kt:273-277 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
X15 · Unvalidated length from an untrusted reader· Length read from the parsed input is spent without ever being bounded · ×1
Length read from the parsed input is spent without ever being bounded android/exifinterface/src/main/java/androidx/exifinterface/media/ExifInterfaceFork.java:6052— `jpegLength` is read from the bytes being parsed at line 6049 (`getInt`), then used to size a `new byte[]` at line 6052 — and nowhere in its scope is `jpegLength` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 32-bit length asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `jpegLength` against the bytes actually remaining and a maximum the format allows before allocating.
Duplicated predicate lib/widgets/settings/privacy/permissions/permissions_page.dart:48— `!settings.useTvLayout && device.canRequestMediaManagementPermission` appears character-identically in 2 files — lib/widgets/settings/privacy/permissions/permissions_page.dart, lib/widgets/settings/privacy/permissions/permissions_tile.dart. 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 lib/widgets/aves_app.dart:252— `!snapshot.hasError && snapshot.connectionState == ConnectionState.done` appears character-identically in 2 files — lib/widgets/aves_app.dart, lib/widgets/viewer/info/location_section.dart. 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 lib/model/vaults/vaults.dart:157— `!vaults.isVault(dirPath) || !vaults.isLocked(dirPath)` appears character-identically in 2 files — lib/model/vaults/vaults.dart, lib/widgets/common/action_mixins/vault_aware.dart. 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 lib/widgets/collection/entry_set_action_delegate.dart:179— `(!isSelecting && hasItems) || (isSelecting && hasSelection)` appears character-identically in 2 files — lib/widgets/collection/entry_set_action_delegate.dart, lib/widgets/filter_grids/common/action_delegates/chip_set.dart. 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 lib/widgets/viewer/action/entry_action_delegate.dart:72— `appMode.canEditEntry && !settings.isReadOnly` appears character-identically in 2 files — lib/widgets/viewer/action/entry_action_delegate.dart, lib/widgets/viewer/action/entry_info_action_delegate.dart. 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 lib/widgets/viewer/multipage/conductor.dart:47— `c.entry.uri == entry.uri && c.entry.pageId == entry.pageId` appears character-identically in 3 files — lib/widgets/viewer/multipage/conductor.dart, lib/widgets/viewer/video/conductor.dart, lib/widgets/viewer/view/conductor.dart. 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 lib/widgets/collection/collection_page.dart:141— `canNavigate && enableBottomNavigationBar` appears character-identically in 4 files — lib/widgets/collection/collection_page.dart, lib/widgets/explorer/explorer_page.dart, lib/widgets/filter_grids/common/filter_grid_page.dart, lib/widgets/navigation/nav_bar/nav_bar.dart. 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 lib/widgets/collection/app_bar.dart:499— `contextualMenuActions.isNotEmpty && contextualMenuActions.last == null` appears character-identically in 2 files — lib/widgets/collection/app_bar.dart, lib/widgets/filter_grids/common/app_bar.dart. 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 lib/widgets/navigation/drawer/app_drawer.dart:324— `currentFilters == null || currentFilters.length > 1` appears character-identically in 2 files — lib/widgets/navigation/drawer/app_drawer.dart, lib/widgets/navigation/tv_rail.dart. 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 lib/widgets/filter_grids/countries_page.dart:30— `eq.equals(t1.$1, t2.$1) && eq.equals(t1.$2, t2.$2) && eq.equals(t1.$3, t2.$3)` appears character-identically in 3 files — lib/widgets/filter_grids/countries_page.dart, lib/widgets/filter_grids/places_page.dart, lib/widgets/filter_grids/states_page.dart. 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 lib/widgets/common/behaviour/eager_scale_gesture_recognizer.dart:314— `event is PointerUpEvent || event is PointerCancelEvent` appears character-identically in 2 files — lib/widgets/common/behaviour/eager_scale_gesture_recognizer.dart, plugins/aves_magnifier/lib/src/core/scale_gesture_recognizer.dart. 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 lib/model/covers.dart:66— `filter is StoredAlbumFilter && vaults.isLocked(filter.album)` appears character-identically in 2 files — lib/model/covers.dart, lib/widgets/filter_grids/common/filter_tile.dart. 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 lib/widgets/filter_grids/common/action_delegates/album_set.dart:118— `isMain && isSelecting && !settings.isReadOnly` appears character-identically in 2 files — lib/widgets/filter_grids/common/action_delegates/album_set.dart, lib/widgets/filter_grids/common/action_delegates/tag_set.dart. 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 lib/widgets/collection/entry_set_action_delegate.dart:91— `isSelecting && selectedItemCount == itemCount` appears character-identically in 2 files — lib/widgets/collection/entry_set_action_delegate.dart, lib/widgets/filter_grids/common/action_delegates/chip_set.dart. 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 lib/model/grouping/common.dart:399— `jsonString == null || jsonString.isEmpty` appears character-identically in 3 files — lib/model/grouping/common.dart, lib/widgets/navigation/nav_item.dart, plugins/aves_map/lib/src/style.dart. 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 lib/model/media/geotiff.dart:234— `latitude >= -90.0 && latitude <= 90.0 && longitude >= -180.0 && longitude <= 180.0` appears character-identically in 2 files — lib/model/media/geotiff.dart, lib/model/metadata/catalog.dart. 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 lib/locale/calendar/ops/hijri.dart:84— `nativeA?.month == month && nativeA?.day == day` appears character-identically in 2 files — lib/locale/calendar/ops/hijri.dart, lib/locale/calendar/ops/persian.dart. 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 lib/locale/calendar/ops/hijri.dart:71— `nativeA?.year == nativeB?.year && nativeA?.month == nativeB?.month` appears character-identically in 2 files — lib/locale/calendar/ops/hijri.dart, lib/locale/calendar/ops/persian.dart. 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 lib/locale/calendar/ops/hijri.dart:78— `nativeA?.year == nativeB?.year && nativeA?.month == nativeB?.month && nativeA?.day == nativeB?.day` appears character-identically in 2 files — lib/locale/calendar/ops/hijri.dart, lib/locale/calendar/ops/persian.dart. 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 lib/widgets/collection/entry_set_action_delegate.dart:778— `newTags.length == currentTags.length && newTags.every(currentTags.contains)` appears character-identically in 2 files — lib/widgets/collection/entry_set_action_delegate.dart, lib/widgets/viewer/action/entry_info_action_delegate.dart. 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 lib/widgets/viewer/visual/raster.dart:84— `oldWidget.entry != widget.entry || oldViewState.viewportSize != viewState.viewportSize` appears character-identically in 2 files — lib/widgets/viewer/visual/raster.dart, lib/widgets/viewer/visual/vector.dart. 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 lib/widgets/filter_grids/countries_page.dart:67— `pinnedMapEntries.isNotEmpty || unpinnedMapEntries.isNotEmpty` appears character-identically in 3 files — lib/widgets/filter_grids/countries_page.dart, lib/widgets/filter_grids/places_page.dart, lib/widgets/filter_grids/states_page.dart. 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 lib/services/analysis_service.dart:195— `progress.total != 0 && sourceState != SourceState.locatingCountries` appears character-identically in 2 files — lib/services/analysis_service.dart, lib/widgets/common/bars/app_bar_subtitle.dart. 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 lib/widgets/collection/collection_grid.dart:666— `selection == null || !selection.isSelecting` appears character-identically in 2 files — lib/widgets/collection/collection_grid.dart, lib/widgets/filter_grids/common/filter_nav_page.dart. 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 lib/widgets/about/policy_page.dart:47— `snapshot.hasError || snapshot.connectionState != ConnectionState.done` appears character-identically in 2 files — lib/widgets/about/policy_page.dart, lib/widgets/welcome_page.dart. 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.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 2 of 19 project(s) overshoot their size bounds, lowering Project Cohesion to 7.9/10. The most over is `(repository root)` (94616 LoC, 1013 module-visible types across 123 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation· No architecture diagram/doc · ×1
No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
No release approval gate — The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
No app-layer HTTPS enforcement detected — This repository runs an HTTP server that is not bound to the loopback interface alone — or binds it at an address its source does not spell out — and nothing in its Dart source secures the transport: no `HttpServer.bindSecure` or `securityContext:`, no `Strict-Transport-Security` header, no `X-Forwarded-Proto` read from a TLS-terminating proxy — so its traffic may cross the network in clear text. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
No security response headers detected — None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is set on a response this repository's Dart server sends — defense in depth, even when a proxy could set them. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
No inbound request validation detected — No handler of this repository's Dart server answers 400, 413 or 422 (`Response.badRequest`, `HttpStatus.badRequest`, `statusCode = 400`) and no validation package (luthor, acanthis, ez_validator, json_schema, …) is imported — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: pubspec.yaml:148 — depends on `shelf`.
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.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 13 file(s) — `android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/AnalysisHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DebugHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/DeviceHandler.kt`, `android/app/src/main/kotlin/deckers/thibault/aves/channel/calls/MetadataFetchHandler.kt`, … (+8 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.
Run 01a16927-cd66-70eb-b991-deaeb00923bc · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 75 · Warnings: 682 · Recommendations: 36 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 23-10-2026 @ 14:26 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.