Public report of lihenggui/blocker, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 02:38 UTC · Survey ID cd_78c8ac0bfeec4e838adead9e32a47da5
lihenggui/blocker
Measured 17 November 2026, 02:37 UTC, at code version ad8bdf3
First survey, so nothing to compare with yet
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 54,634 lines of product code in 47 projects, tests not counted · Estimated rebuild effort: about 0.7 person-years · Weakest lens: Security and Compliance, 59.8
Findings by how serious they are
55 critical239 serious90 minor
12 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 02:37 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that
implements it, and today the Canine Code Analyzer is the only one that does.
The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
53of 53 dimensions measured by tools.
359of 384 findings point to an exact file and line, so you can open each one in the code. The other 25 concern the repository as a whole, such as missing documentation.
53dimensions across 7 lenses, read from 54,634 lines of product code in 47 projects.
lihenggui/blocker falls short of our standard for production, in part because it has pipeline tools referenced by a changeable name. It scores 64.4 out of 100 and is rated Adequate, and 54 of its 55 critical findings are security problems in the build pipeline and in its automatic dependency updates.
Security and Compliance, at 59.8, is the weakest lens and counts most in the score. The best first step is stopping the eight pipeline steps that hand secrets to unpinned tools, worth about 3.6 points. Fixing the two pipeline jobs with more access than they need comes next, worth about 2.2 points. Raising Security and Compliance to 70 would lift the score to about 67.6.
Forty-three pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Ten secrets can leak from the build pipeline, and one automatic update takes new releases before a bad one can be spotted. Pinning each tool to an exact version, limiting each secret to its own step and setting a waiting period for automatic updates would close these risks. The inner part of the code that depends on an outer part needs turning around so it points inward.
The product code is 54,634 lines, about €97,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Security and Compliance rose from 59.8 to 70, the lowest score rated Strong, the score would rise from 64.4 to about 67.6.
Code composition: what the lines of code are
Product code 75%Tests 25%
Rebuild cost: about €97,000 · Estimate
Cost to rebuild
€32,000 to €160,000, for 537 to 1,703 hours of work, about 0.7 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.9 at a score of 64. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Medium: 54,634 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (3), REDACTED.
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 €97,000 to build again, about 0.7 person-years of work. Its weakest lens is Security and Compliance, at 59.8 (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 8 REDACTED finding(s) in Static Analysis (SAST). Of all the actions in this report, it raises the score most for the work it takes: about 3.6 points for low effort, because it clears the 8 Static Analysis (SAST) findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
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.
282 modules, with 485 dependencies between them. 6 loops run through 12 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 242 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.
blocker.core.model.preference uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.model.preference, while a change to blocker.core.model.preference can't break blocker.core.model.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
blocker.core.ui uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.core.ui, while a change to blocker.core.ui can't break blocker.core.analytics.
Position
Below the diagonal: blocker.core.ui uses a module listed above it, which is the healthy direction.
core.ifw.editor uses core.ifw.model, so a change to core.ifw.model can break core.ifw.editor, while a change to core.ifw.editor can't break core.ifw.model.
Position
Below the diagonal: core.ifw.editor uses a module listed above it, which is the healthy direction.
blocker.core.model.data uses blocker.core.model, so a change to blocker.core.model can break blocker.core.model.data, while a change to blocker.core.model.data can't break blocker.core.model.
Position
Below the diagonal: blocker.core.model.data uses a module listed above it, which is the healthy direction.
blocker.core.model.data uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.core.model.data, while a change to blocker.core.model.data can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.core.model.data uses a module listed above it, which is the healthy direction.
blocker.core.controllers uses blocker.core.model, so a change to blocker.core.model can break blocker.core.controllers, while a change to blocker.core.controllers can't break blocker.core.model.
Position
Below the diagonal: blocker.core.controllers uses a module listed above it, which is the healthy direction.
blocker.core.controllers uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.controllers, while a change to blocker.core.controllers can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.controllers uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.componentdetail uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.respository.componentdetail, while a change to blocker.core.data.respository.componentdetail can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.respository.componentdetail uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.userdata uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.core.data.respository.userdata, while a change to blocker.core.data.respository.userdata can't break blocker.core.analytics.
Position
Below the diagonal: blocker.core.data.respository.userdata uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.userdata uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.core.data.respository.userdata, while a change to blocker.core.data.respository.userdata can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.core.data.respository.userdata uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.userdata uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.respository.userdata, while a change to blocker.core.data.respository.userdata can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.respository.userdata uses a module listed above it, which is the healthy direction.
blocker.core.database.app uses blocker.core.model, so a change to blocker.core.model can break blocker.core.database.app, while a change to blocker.core.database.app can't break blocker.core.model.
Position
Below the diagonal: blocker.core.database.app uses a module listed above it, which is the healthy direction.
blocker.core.database.app uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.database.app, while a change to blocker.core.database.app can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.database.app uses a module listed above it, which is the healthy direction.
blocker.core.domain.model uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.domain.model, while a change to blocker.core.domain.model can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.domain.model uses a module listed above it, which is the healthy direction.
blocker.core.utils uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.utils, while a change to blocker.core.utils can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.utils uses a module listed above it, which is the healthy direction.
blocker.core.controllers.shizuku uses blocker.core.model, so a change to blocker.core.model can break blocker.core.controllers.shizuku, while a change to blocker.core.controllers.shizuku can't break blocker.core.model.
Position
Below the diagonal: blocker.core.controllers.shizuku uses a module listed above it, which is the healthy direction.
blocker.core.controllers.shizuku uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.controllers.shizuku, while a change to blocker.core.controllers.shizuku can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.controllers.shizuku uses a module listed above it, which is the healthy direction.
blocker.core.controllers.shizuku uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.controllers.shizuku, while a change to blocker.core.controllers.shizuku can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.controllers.shizuku uses a module listed above it, which is the healthy direction.
blocker.core.controllers.shizuku uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.controllers.shizuku, while a change to blocker.core.controllers.shizuku can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.controllers.shizuku uses a module listed above it, which is the healthy direction.
blocker.core.data.appstate uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.appstate, while a change to blocker.core.data.appstate can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.appstate uses a module listed above it, which is the healthy direction.
blocker.core.data.appstate uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.data.appstate, while a change to blocker.core.data.appstate can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.data.appstate uses a module listed above it, which is the healthy direction.
blocker.core.data.appstate uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.appstate, while a change to blocker.core.data.appstate can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.appstate uses a module listed above it, which is the healthy direction.
blocker.core.data.appstate uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.data.appstate, while a change to blocker.core.data.appstate can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.data.appstate uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.model, so a change to blocker.core.model can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.model.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.result, so a change to blocker.core.result can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.result.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.database.app, so a change to blocker.core.database.app can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.database.app.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.component uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.data.respository.component, while a change to blocker.core.data.respository.component can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.data.respository.component uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.debloater uses blocker.core.result, so a change to blocker.core.result can break blocker.core.data.respository.debloater, while a change to blocker.core.data.respository.debloater can't break blocker.core.result.
Position
Below the diagonal: blocker.core.data.respository.debloater uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.debloater uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.data.respository.debloater, while a change to blocker.core.data.respository.debloater can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.data.respository.debloater uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.debloater uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.respository.debloater, while a change to blocker.core.data.respository.debloater can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.respository.debloater uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.debloater uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.data.respository.debloater, while a change to blocker.core.data.respository.debloater can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.data.respository.debloater uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.generalrule uses blocker.core.result, so a change to blocker.core.result can break blocker.core.data.respository.generalrule, while a change to blocker.core.data.respository.generalrule can't break blocker.core.result.
Position
Below the diagonal: blocker.core.data.respository.generalrule uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.generalrule uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.respository.generalrule, while a change to blocker.core.data.respository.generalrule can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.respository.generalrule uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.generalrule uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.respository.generalrule, while a change to blocker.core.data.respository.generalrule can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.respository.generalrule uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.app uses blocker.core.result, so a change to blocker.core.result can break blocker.core.data.respository.app, while a change to blocker.core.data.respository.app can't break blocker.core.result.
Position
Below the diagonal: blocker.core.data.respository.app uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.app uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.respository.app, while a change to blocker.core.data.respository.app can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.respository.app uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.app uses blocker.core.database.app, so a change to blocker.core.database.app can break blocker.core.data.respository.app, while a change to blocker.core.data.respository.app can't break blocker.core.database.app.
Position
Below the diagonal: blocker.core.data.respository.app uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.app uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.data.respository.app, while a change to blocker.core.data.respository.app can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.data.respository.app uses a module listed above it, which is the healthy direction.
blocker.core.data.respository.app uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.data.respository.app, while a change to blocker.core.data.respository.app can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.data.respository.app uses a module listed above it, which is the healthy direction.
blocker.core.data.util uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.data.util, while a change to blocker.core.data.util can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.data.util uses a module listed above it, which is the healthy direction.
blocker.core.data.util uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.data.util, while a change to blocker.core.data.util can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.data.util uses a module listed above it, which is the healthy direction.
blocker.core.data.util uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.util, while a change to blocker.core.data.util can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.util uses a module listed above it, which is the healthy direction.
blocker.core.data.util uses blocker.core.controllers.shizuku, so a change to blocker.core.controllers.shizuku can break blocker.core.data.util, while a change to blocker.core.data.util can't break blocker.core.controllers.shizuku.
Position
Below the diagonal: blocker.core.data.util uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses blocker.core.model, so a change to blocker.core.model can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break blocker.core.model.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses core.ifw.model, so a change to core.ifw.model can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break core.ifw.model.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses blocker.core.controllers.shizuku, so a change to blocker.core.controllers.shizuku can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break blocker.core.controllers.shizuku.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.core.testing.controller uses core.ifw, so a change to core.ifw can break blocker.core.testing.controller, while a change to blocker.core.testing.controller can't break core.ifw.
Position
Below the diagonal: blocker.core.testing.controller uses a module listed above it, which is the healthy direction.
blocker.feature.globalifwrule.impl uses blocker.core.model, so a change to blocker.core.model can break blocker.feature.globalifwrule.impl, while a change to blocker.feature.globalifwrule.impl can't break blocker.core.model.
Position
Below the diagonal: blocker.feature.globalifwrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.globalifwrule.impl uses core.ifw.model, so a change to core.ifw.model can break blocker.feature.globalifwrule.impl, while a change to blocker.feature.globalifwrule.impl can't break core.ifw.model.
Position
Below the diagonal: blocker.feature.globalifwrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.globalifwrule.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.globalifwrule.impl, while a change to blocker.feature.globalifwrule.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.globalifwrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.globalifwrule.impl uses core.ifw, so a change to core.ifw can break blocker.feature.globalifwrule.impl, while a change to blocker.feature.globalifwrule.impl can't break core.ifw.
Position
Below the diagonal: blocker.feature.globalifwrule.impl uses a module listed above it, which is the healthy direction.
blocker uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker, while a change to blocker can't break blocker.core.analytics.
Position
Below the diagonal: blocker uses a module listed above it, which is the healthy direction.
blocker uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker, while a change to blocker can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker uses a module listed above it, which is the healthy direction.
blocker uses blocker.core.data.util, so a change to blocker.core.data.util can break blocker, while a change to blocker can't break blocker.core.data.util.
Position
Below the diagonal: blocker uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.componentdetail, so a change to blocker.core.data.respository.componentdetail can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.componentdetail.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.appstate, so a change to blocker.core.data.appstate can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.appstate.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.debloater, so a change to blocker.core.data.respository.debloater can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.debloater.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.generalrule, so a change to blocker.core.data.respository.generalrule can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.generalrule.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.data.di uses blocker.core.data.util, so a change to blocker.core.data.util can break blocker.core.data.di, while a change to blocker.core.data.di can't break blocker.core.data.util.
Position
Below the diagonal: blocker.core.data.di uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.domain.model, so a change to blocker.core.domain.model can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.domain.model.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.data.respository.generalrule, so a change to blocker.core.data.respository.generalrule can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.data.respository.generalrule.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.domain, while a change to blocker.core.domain can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.domain uses a module listed above it, which is the healthy direction.
blocker.core.domain.applist uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.core.domain.applist, while a change to blocker.core.domain.applist can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.core.domain.applist uses a module listed above it, which is the healthy direction.
blocker.core.domain.applist uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.domain.applist, while a change to blocker.core.domain.applist can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.domain.applist uses a module listed above it, which is the healthy direction.
blocker.core.domain.applist uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.domain.applist, while a change to blocker.core.domain.applist can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.domain.applist uses a module listed above it, which is the healthy direction.
blocker.core.domain.applist uses blocker.core.data.appstate, so a change to blocker.core.data.appstate can break blocker.core.domain.applist, while a change to blocker.core.domain.applist can't break blocker.core.data.appstate.
Position
Below the diagonal: blocker.core.domain.applist uses a module listed above it, which is the healthy direction.
blocker.core.domain.applist uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.domain.applist, while a change to blocker.core.domain.applist can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.domain.applist uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.model, so a change to blocker.core.model can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.model.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.data.respository.componentdetail, so a change to blocker.core.data.respository.componentdetail can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.data.respository.componentdetail.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.domain.model, so a change to blocker.core.domain.model can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.domain.model.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.domain.components uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.domain.components, while a change to blocker.core.domain.components can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.domain.components uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break blocker.core.controllers.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses blocker.core.utils, so a change to blocker.core.utils can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break blocker.core.utils.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses core.ifw, so a change to core.ifw can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break core.ifw.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.rule.work uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.rule.work, while a change to blocker.core.rule.work can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.rule.work uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.model, so a change to blocker.core.model can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.model.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.result, so a change to blocker.core.result can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.result.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.model.data.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.data.respository.componentdetail, so a change to blocker.core.data.respository.componentdetail can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.data.respository.componentdetail.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.data.respository.generalrule, so a change to blocker.core.data.respository.generalrule can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.data.respository.generalrule.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.core.testing.repository uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.core.testing.repository, while a change to blocker.core.testing.repository can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.core.testing.repository uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.result, so a change to blocker.core.result can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.result.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.domain.model, so a change to blocker.core.domain.model can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.domain.model.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.data.respository.debloater, so a change to blocker.core.data.respository.debloater can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.data.respository.debloater.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.debloater.impl uses blocker.core.data.util, so a change to blocker.core.data.util can break blocker.feature.debloater.impl, while a change to blocker.feature.debloater.impl can't break blocker.core.data.util.
Position
Below the diagonal: blocker.feature.debloater.impl uses a module listed above it, which is the healthy direction.
blocker.feature.impl.settings uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.impl.settings, while a change to blocker.feature.impl.settings can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.impl.settings uses a module listed above it, which is the healthy direction.
blocker.feature.impl.settings uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.feature.impl.settings, while a change to blocker.feature.impl.settings can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.feature.impl.settings uses a module listed above it, which is the healthy direction.
blocker.feature.impl.settings uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.impl.settings, while a change to blocker.feature.impl.settings can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.impl.settings uses a module listed above it, which is the healthy direction.
blocker.feature.impl.settings uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.impl.settings, while a change to blocker.feature.impl.settings can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.impl.settings uses a module listed above it, which is the healthy direction.
blocker.feature.impl.settings uses blocker.core.data.util, so a change to blocker.core.data.util can break blocker.feature.impl.settings, while a change to blocker.feature.impl.settings can't break blocker.core.data.util.
Position
Below the diagonal: blocker.feature.impl.settings uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.result, so a change to blocker.core.result can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.result.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.ui, so a change to blocker.core.ui can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.ui.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.domain.model, so a change to blocker.core.domain.model can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.domain.model.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.data.respository.generalrule, so a change to blocker.core.data.respository.generalrule can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.data.respository.generalrule.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.ruledetail.impl uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.feature.ruledetail.impl, while a change to blocker.feature.ruledetail.impl can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.feature.ruledetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.result, so a change to blocker.core.result can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.result.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.ui, so a change to blocker.core.ui can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.ui.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.controllers, so a change to blocker.core.controllers can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.controllers.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.data.respository.componentdetail, so a change to blocker.core.data.respository.componentdetail can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.data.respository.componentdetail.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.domain.model, so a change to blocker.core.domain.model can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.domain.model.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.utils, so a change to blocker.core.utils can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.utils.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.domain, so a change to blocker.core.domain can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.domain.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.appdetail.impl uses blocker.core.domain.components, so a change to blocker.core.domain.components can break blocker.feature.appdetail.impl, while a change to blocker.feature.appdetail.impl can't break blocker.core.domain.components.
Position
Below the diagonal: blocker.feature.appdetail.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.model.preference, so a change to blocker.core.model.preference can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.model.preference.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.utils, so a change to blocker.core.utils can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.utils.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.data.util, so a change to blocker.core.data.util can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.data.util.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.domain, so a change to blocker.core.domain can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.domain.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.applist.impl uses blocker.core.domain.applist, so a change to blocker.core.domain.applist can break blocker.feature.applist.impl, while a change to blocker.feature.applist.impl can't break blocker.core.domain.applist.
Position
Below the diagonal: blocker.feature.applist.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.data.respository.generalrule, so a change to blocker.core.data.respository.generalrule can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.data.respository.generalrule.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.generalrule.impl uses blocker.core.domain, so a change to blocker.core.domain can break blocker.feature.generalrule.impl, while a change to blocker.feature.generalrule.impl can't break blocker.core.domain.
Position
Below the diagonal: blocker.feature.generalrule.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.analytics, so a change to blocker.core.analytics can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.analytics.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.ui.data, so a change to blocker.core.ui.data can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.ui.data.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.ui, so a change to blocker.core.ui can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.ui.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.model.data, so a change to blocker.core.model.data can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.model.data.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.data.respository.userdata, so a change to blocker.core.data.respository.userdata can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.data.respository.userdata.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.utils, so a change to blocker.core.utils can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.utils.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.data.respository.component, so a change to blocker.core.data.respository.component can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.data.respository.component.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.data.respository.app, so a change to blocker.core.data.respository.app can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.data.respository.app.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.domain, so a change to blocker.core.domain can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.domain.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
blocker.feature.search.impl uses blocker.core.domain.applist, so a change to blocker.core.domain.applist can break blocker.feature.search.impl, while a change to blocker.feature.search.impl can't break blocker.core.domain.applist.
Position
Below the diagonal: blocker.feature.search.impl uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
55
High / Critical
A03:2025 — Software Supply Chain Failures
6
Medium
Roadmap
Top priorities: Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (3), REDACTED; Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure; Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (3), REDACTED.
Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
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 — 55
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 — 239
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 — 90
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 12
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 53 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 53 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, 359 of 384 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a coverage step in CI (`coverage report`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.kt), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored.
D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.kt) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a Gradle build resolved 635 artifact(s) across its subprojects (175 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (ui-test-hilt-manifest/build.gradle.kts), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/Scrollbar.kt`, `core/git/src/main/kotlin/com/merxury/blocker/core/git/GitClient.kt`, `core/ifw-api/src/main/kotlin/com/merxury/core/ifw/model/IfwFilterSummary.kt`, `core/navigation/src/main/kotlin/com/merxury/blocker/core/navigation/Navigator.kt`, `core/network/src/main/kotlin/com/merxury/blocker/core/network/fake/FakeAssetManager.kt`, … (+1 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: a native UI project (ui-test-hilt-manifest/src/main/AndroidManifest.xml). 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. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
DM8 Value-object opportunities — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds primitive parameters that travel together through several signatures of the domain (a missing value object). Its deterministic rule has not yet shown 95 % precision on adjudicated rows, so the clumps it finds are counted here and not published as findings, and the card carries no score. That is a limit of the analyzer, not a finding about your code.
DM9 Scattered domain decisions — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Arm one resolves each comparison operand to the domain member it judges, and that binding exists only in a Roslyn compilation, which this run did not load. Arm two ran over the neutral model because this repository's frontend declares whether each construction is produced or passed. A rule decided in two places would not appear above.
DM9 Scattered domain decisions — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The frontend declares that it computes whether a construction is produced or passed, yet 843 of 852 constructions arrived without the answer. Arm two skipped them; it did not clear them.
GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and this repository's Kotlin is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and this repository's Kotlin is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
S1 Web-Security Posture — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
5 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ApkParser.getActivitiesWithIntentFilters at 41. A further 3 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 IfwRuleEditorMapperKt.toEditorNodeOrNull at 23 — they are counted neither in the figure above nor in this dimension's score. 2 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: core/ifw-api/src/main/kotlin/com/merxury/core/ifw/xml/IfwXmlDeserializer.kt (IfwXmlDeserializer.parseFilter at 22), core/ifw-api/src/main/kotlin/com/merxury/core/ifw/xml/IfwXmlSerializer.kt (IfwXmlSerializer.serializeFilter at 20). 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.
Bring the 5 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with ApkParser.getActivitiesWithIntentFilters (cyclomatic 41), IfwRuleEditorMapperKt.toIfwFilterOrNull (cyclomatic 32), ScrollbarKt.Scrollbar (cyclomatic 24). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cyclomatic Complexity from 8.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 7 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 30 down to 30 or less in Cognitive Complexity — start with ApkParser.getActivitiesWithIntentFilters (cognitive 87), IfwRuleEditorMapperKt.toIfwFilterOrNull (cognitive 34). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 7.2 to about 8.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.4 / 10Stronggated by 9 serious findings✓ 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 3 FileTooLong finding(s) in God Classes — start with AppDetailScreen.kt, AppDetailViewModel.kt, SearchScreen.kt. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 3 MethodTooLong finding(s) in God Classes — start with SimpleGlobalIfwRuleScreen.kt, Scrollbar.kt, ApkParser.kt. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 2 TooManyMethods finding(s) in God Classes — start with AppDetailViewModel.kt, GlobalIfwRuleViewModel.kt. — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
70 duplicated block group(s) detected. 8.7 % of the production lines (4,768 of 54,634) are in a reported copy. A further 77 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
Edited copy of a member (24 corresponding lines) · ×4build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:40
Edited copy of a member (17 corresponding lines) · ×4build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:87
+ 78 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 5 Duplicated block (17 lines × 2) finding(s) in Code Duplication — start with AppDetailScreen.kt (2), AppListItem.kt, AddRuleScreen.kt. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 5 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with ExportBlockerRulesWorker.kt (2), ComponentInfoExt.kt, ConditionEditorCard.kt. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 5 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with ApkParser.kt (2), AppListViewModel.kt (2), ComponentAdapter.kt. — One of this dimension's main actionable groups (5 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling7.4 / 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.
47 production modules (Gradle), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 16 module(s) off the main sequence, with abstractness counted on 42 of the 47 (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: Blocker:core:navigation · ×15
Off the main sequence: Blocker:core:common
What to do
Resolve the 15 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (15 warning-level).
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.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 47 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 49 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 18 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 59 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
36 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt. Counted over 270 of the 635 production source files in this repository: 363 are under the ~2,400-byte size floor this dimension measures over, and the remaining 2 have no attributable history left to measure.
Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)
What to do
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d16_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.
16 deducted task-comment markers across 54634 LoC (0.0/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 16 TodoComment finding(s) in Explicit Debt — start with DropdownMenu.kt (3), ScreenshotHelper.kt (2), Button.kt (2). — One of this dimension's main actionable groups (16 warning-level).
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: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 52 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.
No ADRs foundbuild-logic/convention/build.gradle.kts:58
What to do
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
55 finding(s): 0 critical, 54 high, 1 medium, 0 low. 43 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `gradlew` (line 74, line 178) — 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 2 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
REDACTED
REDACTED
What to do
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (3), REDACTED. — One of this dimension's main actionable groups (8 issue-level).
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
No action in Static Analysis (SAST) — all 43 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (43 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
41 of 272 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt. Counted over 272 of the 635 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 41 Orphaned file finding(s) in Knowledge Freshness — start with CollapsingTopAppBar.kt, SegmentedButtons.kt, ScreenshotHelper.kt. — One of this dimension's main actionable groups (41 recommendation-level).
Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 8 Change coupling finding(s) in Change Coupling — start with LocalComponentDetailDataSource.kt, UserDataRepository.kt, AppListItem.kt. — One of this dimension's main actionable groups (8 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.
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
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 3 platform declaration(s) and 109 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
`RootApiAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningPackages; e.g. `runningPackages` in `refreshRunningAppList` at line 66). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiAppController.kt:30
`RootApiServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningServices; e.g. `runningServices` in `load` at line 41). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiServiceController.kt:29
`RootAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningAppList; e.g. `runningAppList` in `refreshRunningAppList` at line 112). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootAppController.kt:37
`RootServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningServices; e.g. `runningServices` in `load` at line 41). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootServiceController.kt:34
`ShizukuAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (currentRunningProcess; e.g. `currentRunningProcess` in `refreshRunningAppList` at line 206). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.kt:50
`ShizukuInitializer` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (binderReceivedListener, requestPermissionResultListener; e.g. `binderReceivedListener` in `registerShizuku` at line 58). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuInitializer.kt:33
`ShizukuServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (serviceList; e.g. `serviceList` in `load` at line 62). — core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuServiceController.kt:39
`AppPermissionMonitor` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (controllerStatus; e.g. `controllerStatus` in `initController` at line 77). — core/data/src/main/kotlin/com/merxury/blocker/core/data/util/AppPermissionMonitor.kt:51
What to do
Java/Kotlin: keep container singletons stateless — move per-request data into locals or a request-scoped bean — or back the state with java.util.concurrent types (ConcurrentHashMap, AtomicInteger/AtomicReference), guard it with synchronized / a Lock (Kotlin: withLock), or mark a flag that is only ever overwritten volatile (@Volatile).
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.
`Blocker:core:domain` is a Domain project but references `Blocker:core:ifw-api`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`IPackageInstallerSession` declares 18 abstract methods: `abandon`, `addChildSessionId`, `addClientProgress`, `close`, `commit`, `commit`, `getChildSessionIds`, `getNames`, `getParentSessionId`, `isMultiPackage`, `isStaged`, `openRead`, `openWrite`, `removeChildSessionId`, `removeSplit`, `setClientProgress`, `transfer`, `write`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 18 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — core/component-controller/src/main/java/android/content/pm/IPackageInstallerSession.java:28
`UserDataRepository` declares 20 abstract methods: `setDarkThemeConfig`, `setDynamicColorPreference`, `setControllerType`, `setRuleServerProvider`, `setRuleBackupFolder`, `setBackupSystemApp`, `setRestoreSystemApp`, `setShowSystemApps`, `setShowServiceInfo`, `setAppSorting`, `setAppSortingOrder`, `setComponentShowPriority`, `setComponentSortingOrder`, `setComponentSorting`, `setTopAppType`, `setIsFirstTimeInitializationCompleted`, `setAppDisplayLanguage`, `setLibDisplayLanguage`, `getLibDisplayLanguage`, `setEnableStatistics`. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/userdata/UserDataRepository.kt:30
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Other · Domain Modelling — Whether an aggregate can be constructed in a state its own rules forbid — a public constructor that takes a raw primitive, stores it, and validates nothing, with no factory beside it. A constructor taking only value objects is not counted: each parameter has already validated itself.
Method: Neutral surface (DDD-gated): each non-abstract entity/aggregate checked for a PUBLIC constructor taking at least one RAW PRIMITIVE parameter whose body contains no guard token (throw / Guard. / Ensure. / ArgumentException / CheckRule / an XException.ThrowIf* helper). C#: a static factory beside a public constructor does not exempt it, and a public parameterless constructor followed by public raw-primitive setters that refuse nothing is charged when the type also declares a validating way in (a guarded constructor or a guarding static method returning the type); TypeScript: a static Create/Of/From/New factory exempts the type. A constructor taking only value objects is never charged -- measured: 64 of 87 unguarded public constructors on the C# corpus take value objects only, so ignoring parameter types would be 73% false positives. One finding per entity. Deterministic.
`InstantComponentInfo`'s public constructor takes `packagePath`, `componentName`, `description` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `InstantComponentInfo` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — app/src/main/kotlin/com/merxury/blocker/core/database/instantinfo/InstantComponentInfo.kt:23
`AppComponentEntity`'s public constructor takes `packageName`, `componentName` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `AppComponentEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — core/database/src/main/kotlin/com/merxury/blocker/core/database/app/AppComponentEntity.kt:30
`InstalledAppEntity`'s public constructor takes `packageName`, `versionName`, `label` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `InstalledAppEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — core/database/src/main/kotlin/com/merxury/blocker/core/database/app/InstalledAppEntity.kt:27
`DebloatableComponentEntity`'s public constructor takes `packageName`, `componentName`, `simpleName`, `displayName`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `DebloatableComponentEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — core/database/src/main/kotlin/com/merxury/blocker/core/database/debloater/DebloatableComponentEntity.kt:34
`GeneralRuleEntity`'s public constructor takes `name`, `iconUrl`, `company`, `description`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `GeneralRuleEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — core/database/src/main/kotlin/com/merxury/blocker/core/database/generalrule/GeneralRuleEntity.kt:27
What to do
Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
Do you agree with this assessment?
DM12 · Ambient inputs in the domain10.0 / 10Exemplary○ Nothing flagged
Other · Domain Modelling — Whether domain types receive the time and randomness their rules depend on, rather than reading the process clock or a global random source directly — an ambient read makes the rule it feeds untestable at the instant that matters and lets two reads inside one operation disagree.
Method: Roslyn (DDD-gated, C#/VB only): domain-layer types scanned for ambient reads — DateTime/DateTimeOffset.Now/UtcNow/Today, Random.Shared, new Random(), Stopwatch.GetTimestamp — resolved against the semantic model, with a comment/string-stripped token fallback only where resolution fails. Body reads are scored; field/property initialisers are surfaced unscored. Apply/When folds excluded (ES1 owns them). Deterministic, symbol-resolved.
Do you agree with this assessment?
DM4 · Rich vs anemic model3.0 / 10Weak✓ Tool-verified
Other · Domain Modelling — Whether aggregates/entities carry the behaviour that protects their invariants, rather than being data bags driven by external services.
Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.
Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.
`InstantComponentInfo` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — app/src/main/kotlin/com/merxury/blocker/core/database/instantinfo/InstantComponentInfo.kt:23
What to do
Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
Other · Domain Modelling — Whether entities protect their state — private/init-only setters, and collections handed out as read-only views rather than the mutable backing collection — instead of exposing writable state that bypasses invariants. Softened when a rehydration framework (Marten/EF) is present.
Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.
Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.
Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.
Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.
Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.
Other · Domain Modelling — Whether repositories are per aggregate root (not per child entity) and keep the persistence query handle behind the contract, so the root's invariants can't be bypassed.
Method: Roslyn (DDD-gated): repository abstraction detection; repositories over non-aggregate-root entities flagged, and (C#/VB) repository INTERFACES whose members return a live persistence query handle (IQueryable/DbSet/IMongoQueryable) — implementations and specification evaluators are out of population by design, since composing a query internally is what an implementation is for. Deterministic, DDD-native.
Coverage: Population: repositories + aggregate roots by NAME convention; per-root repository rule checked within the set.
Other · Domain Modelling — Whether one domain rule is decided — or one measurement produced — in more than one place, rather than living on the type that owns it.
Method: Neutral body surface plus Roslyn (DDD-gated), two arms. DECISION (Roslyn only): a predicate over a domain type's members judged in two or more types, where none of those decisions live on the owning type — operands of comparisons and relational property patterns only, so a member merely passed as an argument is not judged. DERIVATION: a plain all-numeric carrier of ≥2 members, with no base type and exactly one constructor, CONSTRUCTED as the result of a method (returned or assigned, never inline as an argument) in two or more types other than its own — the same measurement produced twice, which centralising the judgement does not fix. DERIVATION runs on every language whose frontend declares the produced-or-passed fact per construction (Roslyn and the Java sidecar today); a target with only the derivation arm carries an engine gap naming the decision arm as not assessed, and a frontend that declares nothing keeps the dimension not measured rather than clean. Single-member rules, test code and generated code are out of population for both. Advisory.
Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
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.
`core/data/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/data/README.md:7
`core/data-test/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/data-test/README.md:7
`core/domain/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `git`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/domain/README.md:7
`core/provider/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/provider/README.md:7
`core/rule/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/rule/README.md:7
`core/testing/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/testing/README.md:7
`core/ui/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `navigation`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — core/ui/README.md:7
`feature/debloater/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `navigation`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/debloater/README.md:7
`sync/sync-test/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — sync/sync-test/README.md:7
`sync/work/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — sync/work/README.md:7
`feature/appdetail/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/appdetail/api/README.md:7
`feature/appdetail/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/appdetail/impl/README.md:7
`feature/applist/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/applist/api/README.md:7
`feature/applist/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/applist/impl/README.md:7
`feature/debloater/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/debloater/api/README.md:7
`feature/debloater/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/debloater/impl/README.md:7
`feature/generalrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/generalrule/api/README.md:7
`feature/generalrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/generalrule/impl/README.md:7
`feature/globalifwrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/globalifwrule/api/README.md:7
`feature/globalifwrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/globalifwrule/impl/README.md:7
`feature/ifwrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/ifwrule/api/README.md:7
`feature/ifwrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/ifwrule/impl/README.md:7
`feature/ruledetail/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/ruledetail/api/README.md:7
`feature/ruledetail/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/ruledetail/impl/README.md:7
`feature/search/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/search/api/README.md:7
`feature/search/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/search/impl/README.md:7
`feature/settings/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/settings/api/README.md:7
`feature/settings/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape. — feature/settings/impl/README.md:7
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.
Update core/data/README.md so it draws the parts the code has today: add designsystem, domain, git, navigation, provider, rule, ui.
Update core/data-test/README.md so it draws the parts the code has today: add designsystem, domain, git, navigation, provider, rule, ui.
Update core/domain/README.md so it draws the parts the code has today: add designsystem, git, navigation, provider, ui.
Update core/provider/README.md so it draws the parts the code has today: add designsystem, domain, git, navigation, rule, ui.
Update core/rule/README.md so it draws the parts the code has today: add designsystem, domain, git, navigation, provider, ui.
Update core/testing/README.md so it draws the parts the code has today: add navigation, provider, ui.
Update core/ui/README.md so it draws the parts the code has today: add git, navigation, provider.
Update feature/debloater/README.md so it draws the parts the code has today: add git, navigation, provider.
Update sync/sync-test/README.md so it draws the parts the code has today: add designsystem, domain, navigation, provider, ui.
Update sync/work/README.md so it draws the parts the code has today: add designsystem, domain, navigation, provider, ui.
Update feature/appdetail/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/appdetail/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/applist/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/applist/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/debloater/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/debloater/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/generalrule/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/generalrule/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/globalifwrule/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/globalifwrule/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/ifwrule/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/ifwrule/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/ruledetail/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/ruledetail/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/search/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/search/impl/README.md so it draws the parts the code has today: add git, provider.
Update feature/settings/api/README.md so it draws the parts the code has today: add git, provider.
Update feature/settings/impl/README.md so it draws the parts the code has today: add git, provider.
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.
Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
`REDACTED` schedules updates, but no `package-ecosystem` entry covers `gitsubmodule`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list. — REDACTED:3
What to do
Dependabot is configured but does not watch `gitsubmodule` — add that `package-ecosystem` entry 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. — REDACTED:138
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 protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether suspend functions that make a cancellable request accept or pass on the coroutine's cancellation (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 0/1 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine's cancellation or pass one on, so a request keeps running after whatever wanted it has given up — a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends — Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` that cancels the `Call` — not a blocking `execute()`: `withContext(Dispatchers.IO)` moves the call off the caller's thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
`getOnlineSetData` suspends, but makes its request with `newCall(…).execute()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:115
What to do
Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether 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?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:587, feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:593
`catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×3) — app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:202, app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListViewModel.kt:178, app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesAdapter.kt:131
`catch (ignored: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — app/src/main/kotlin/com/merxury/blocker/util/AppIconCache.kt:73
`catch (e: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — app/src/main/kotlin/com/merxury/blocker/util/AppIconCache.kt:151
What to do
Swallowed exception (caught, then discarded)
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 Kotlin's null safety is not undermined by not-null assertions — `String` cannot hold null and `String?` must be checked before use in every Kotlin module, and each `!!` is a run-time `NullPointerException` the author has told the compiler cannot happen.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 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 — 8 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 71 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: Dagger rejects, at compile time, a component that holds a binding with a narrower scope than its own.
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no data at rest for these controls to protect.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~17854 lines of test source are present (.kt) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — the .kt suite was found but not re-run
D12 Dependency Hygiene — Not scored — a Gradle build resolved 635 artifact(s) across its subprojects (175 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D21 Naming Consistency — D21 withholds its case and prefix conventions rows: 5 candidate(s) found and not reported.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .java, .kt, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — no ADRs to check
D27 Navigability — symbol resolution incomplete — navigability not assessed
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 6 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
DM3 Integration-event coupling — no integration events detected — coupling check not applicable
DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
P2 Observability — This repository's JVM source (42 module(s), 548 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X24 Document value interpolated into markup unescaped — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X28 Index access outside its own emptiness guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
Dependency-rule violation: Blocker:core:domain (Domain) → Blocker:core:ifw-api (Web) — `Blocker:core:domain` is a Domain project but references `Blocker:core:ifw-api`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
TodoComment core/screenshot-testing/src/main/kotlin/com/merxury/blocker/core/testing/util/ScreenshotHelper.kt:72— // TODO use Matchers.not(Matchers.anything()) — 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 core/screenshot-testing/src/main/kotlin/com/merxury/blocker/core/testing/util/ScreenshotHelper.kt:92— // TODO use Matchers.not(Matchers.anything()) — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Button.kt:334— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Button.kt:338— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Chip.kt:129— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:279— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:283— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:287— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/IconButton.kt:53— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/IconButton.kt:128— // TODO: File bug — 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 core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/ViewToggle.kt:156— // TODO: File bug — 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 core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/generalrule/LocalGeneralRuleDataSource.kt:106— // TODO should be removed in future — 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 build-logic/convention/src/main/kotlin/com/merxury/blocker/Badging.kt:154— // TODO: Replace with `sdkComponents.aapt2` when it's available in AGP — 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 build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt:99— // TODO rename APK file after signing — 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 app-compose/src/main/kotlin/com/merxury/blocker/ui/BlockerApp.kt:255— // TODO: We may want to add padding or spacer when the snackbar is shown so that — 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 app/src/main/kotlin/com/merxury/blocker/util/ManagerUtils.kt:69— // TODO API adaption — 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.
Off the main sequence: Blocker:core:navigation — Blocker:core:navigation: 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: Blocker:feature:appdetail:api — Blocker:feature:appdetail:api: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
Off the main sequence: Blocker:feature:applist:api — Blocker:feature:applist:api: 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: Blocker:feature:debloater:api — Blocker:feature:debloater:api: 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: Blocker:feature:generalrule:api — Blocker:feature:generalrule:api: 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: Blocker:feature:globalifwrule:api — Blocker:feature:globalifwrule:api: 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: Blocker:feature:ifwrule:api — Blocker:feature:ifwrule:api: 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: Blocker:feature:ruledetail:api — Blocker:feature:ruledetail:api: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
Off the main sequence: Blocker:feature:settings:api — Blocker:feature:settings:api: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
Off the main sequence: Blocker:ui-test-hilt-manifest — Blocker:ui-test-hilt-manifest: 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: Blocker:core:model — Blocker:core:model: abstractness 0.02, instability 0.00, distance 0.98 — zone of pain — concrete and depended on by 12 project(s), so it's rigid to change.
Off the main sequence: Blocker:core:designsystem — Blocker:core:designsystem: abstractness 0.03, instability 0.00, distance 0.97 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
Off the main sequence: Blocker:core:analytics — Blocker:core:analytics: abstractness 0.20, instability 0.00, distance 0.80 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
Off the main sequence: Blocker:core:ifw-api — Blocker:core:ifw-api: abstractness 0.06, instability 0.18, distance 0.76 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
Off the main sequence: Blocker:core:git — Blocker:core:git: abstractness 0.25, instability 0.00, distance 0.75 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Stateful singleton: RootApiAppController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiAppController.kt:30— `RootApiAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningPackages; e.g. `runningPackages` in `refreshRunningAppList` at line 66).
Stateful singleton: RootApiServiceController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiServiceController.kt:29— `RootApiServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningServices; e.g. `runningServices` in `load` at line 41).
Stateful singleton: RootAppController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootAppController.kt:37— `RootAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningAppList; e.g. `runningAppList` in `refreshRunningAppList` at line 112).
Stateful singleton: RootServiceController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootServiceController.kt:34— `RootServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (runningServices; e.g. `runningServices` in `load` at line 41).
Stateful singleton: ShizukuAppController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.kt:50— `ShizukuAppController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (currentRunningProcess; e.g. `currentRunningProcess` in `refreshRunningAppList` at line 206).
Stateful singleton: ShizukuInitializer core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuInitializer.kt:33— `ShizukuInitializer` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (binderReceivedListener, requestPermissionResultListener; e.g. `binderReceivedListener` in `registerShizuku` at line 58).
Stateful singleton: ShizukuServiceController core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuServiceController.kt:39— `ShizukuServiceController` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (serviceList; e.g. `serviceList` in `load` at line 62).
Stateful singleton: AppPermissionMonitor core/data/src/main/kotlin/com/merxury/blocker/core/data/util/AppPermissionMonitor.kt:51— `AppPermissionMonitor` is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (controllerStatus; e.g. `controllerStatus` in `initController` at line 77).
Change coupling: LocalComponentDetailDataSource.kt ↔ UserGeneratedComponentDetailDataSource.kt core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/LocalComponentDetailDataSource.kt:1— `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/LocalComponentDetailDataSource.kt` and `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/UserGeneratedComponentDetailDataSource.kt` change together 91% of the time (10 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). 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 10 shared commits counted here, the most recent 3 are `ed3d1b17` Make component datasource internal; `c9463e81` Move common properties providers in the common module; `2b3a1019` Use correct path to add customized rules — run `git show` on any of them.
Change coupling: UserDataRepository.kt ↔ BlockerPreferencesDataSource.kt core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/userdata/UserDataRepository.kt:1— `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/userdata/UserDataRepository.kt` and `core/datastore/src/main/kotlin/com/merxury/blocker/core/datastore/BlockerPreferencesDataSource.kt` change together 75% of the time (12 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 12 shared commits counted here, the most recent 3 are `c89e6d1c` Replace "show running apps on top" toggle with a configurable `TopApp…; `02218d9c` Detect variant to disable tracking feature; `225ded84` Add checkedStatistics — run `git show` on any of them.
Change coupling: AppListItem.kt ↔ AppListItemMenuList.kt core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:1— `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt` and `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItemMenuList.kt` change together 67% of the time (8 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). 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 `325eb17c` Fix spotless issues in the ui module; `e452e1de` Show force stop dynamically (at that commit the files were still `feature/applist/src/main/java/com/merxury/blocker/feature/applist/component/AppListItem.kt` and `feature/applist/src/main/java/com/merxury/blocker/feature/applist/component/AppListItemMenuList.kt`); `a98fba06` Add running and disabled indicators in the app list (at that commit the files were still `feature/applist/src/main/java/com/merxury/blocker/feature/applist/component/AppListItem.kt` and `feature/applist/src/main/java/com/merxury/blocker/feature/applist/component/AppListItemMenuList.kt`) — run `git show` on any of them.
Change coupling: AppDetailScreen.kt ↔ AppDetailActionComponent.kt feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1— `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt` and `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/ui/AppDetailActionComponent.kt` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `b07ab08f` Fix spotless issues in the app details (at that commit the files were still `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/AppDetailScreen.kt` and `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/ui/AppDetailActionComponent.kt`); `794bf795` Add share options in the more menu (at that commit the files were still `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/AppDetailScreen.kt` and `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/ui/AppDetailActionComponent.kt`); `3b9e419e` Revert "Add share options in the more menu" (at that commit the files were still `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/AppDetailScreen.kt` and `feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/ui/AppDetailActionComponent.kt`) — run `git show` on any of them.
Change coupling: AndroidApplicationConventionPlugin.kt ↔ AndroidLibraryConventionPlugin.kt build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt:1— `build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt` and `build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt` change together 60% of the time (12 of the 20 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 12 shared commits counted here, the most recent 3 are `1149f36d` Apply spotless by default in convention plugins; `c36a32d4` Bump target & compile SDK version to 36 and bump minSdkVersion to 23; `031753ef` Revert "Upgrade target SDK version to 36 in application and library c… — run `git show` on any of them.
Change coupling: RootAppController.kt ↔ ShizukuAppController.kt core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootAppController.kt:1— `core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/command/RootAppController.kt` and `core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.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 `1b69e8dd` Fix spotless issues; `fef7bedc` Make controller implementations internal; `2586a9b3` Implement uninstalling app using Shizuku (at that commit the file was still `core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/RootAppController.kt`) — run `git show` on any of them.
Change coupling: SupportAndFeedbackScreen.kt ↔ SupportAndFeedbackEntryProvider.kt feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportAndFeedbackScreen.kt:1— `feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportAndFeedbackScreen.kt` and `feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/navigation/SupportAndFeedbackEntryProvider.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 `4e1f23dd` Rename (at that commit the files were still `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/SupportAndFeedbackScreen.kt` and `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/navigation/SupportAndFeedbackNavigation.kt`); `46b23eba` Add license model and navigateToLicenses (at that commit the files were still `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/SupportAndFeedbackScreen.kt` and `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/navigation/SupportAndFeedbackNavigation.kt`); `73434093` Use the correct import for the SnackbarHost (at that commit the files were still `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/SupportAndFeedbackScreen.kt` and `feature/settings/src/main/kotlin/com/merxury/blocker/feature/helpandfeedback/navigation/SupportAndFeedbackNavigation.kt`) — run `git show` on any of them.
Change coupling: ApkParser.kt ↔ ApplicationUtil.kt core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:1— `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt` and `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt` change together 50% of the time (10 of the 20 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 10 shared commits counted here, the most recent 3 are `754b5bae` Fix compilation errors; `db47825d` Change package and remove unused annotations; `6f091607` Fix crash issues when app is uninstalled (at that commit the files were still `core/common/src/main/java/com/merxury/blocker/core/utils/ApkParser.kt` and `core/common/src/main/java/com/merxury/blocker/core/utils/ApplicationUtil.kt`) — run `git show` on any of them.
Swallowed exception (caught, then discarded) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:587— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:593— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:202— `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/kotlin/com/merxury/blocker/util/AppIconCache.kt:73— `catch (ignored: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/kotlin/com/merxury/blocker/util/AppIconCache.kt:151— `catch (e: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListViewModel.kt:178— `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesAdapter.kt:131— `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Duplicated block (17 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:189— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:189-205 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt:134-150 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt` and `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:189` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:331— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:331-347 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportAndFeedbackScreen.kt:100-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. Read the line range as the matched WINDOW rather than a finished unit: at `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:331` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:922— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:922-938 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1133-1149 — both copies are in the same file, so extract the 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 `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:922` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:162— feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:162-178 | feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/SimpleGlobalIfwRuleScreen.kt:258-274 — 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 `feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:162` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:89— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:89-105 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/component/AppSortBottomSheet.kt:87-103 — 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 `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: `Loading` names `com.merxury.blocker.feature.appdetail.impl.bottomsheet.ComponentSortInfoUiState.Loading` in one and `com.merxury.blocker.feature.applist.impl.AppSortInfoUiState.Loading` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (10 lines × 2) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:260— core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:260-269 | core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ListAllComponentsToStorageWorker.kt:121-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:260` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt:72— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt:72-81 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt:44-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (10 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:66— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:66-75 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/GroupEditorCard.kt:59-68 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:386— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:386-395 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:441-450 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:452` calls `dismissWarningDialog`, `emit` and `feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:397` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:287— core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:287-296 | core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ImportIfwRulesWorker.kt:160-169 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:287` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:94— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:94-98 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:124-128 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:374— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:374-378 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:427-432 — 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) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:380— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:380-384 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:434-439 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt:53— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt:53-57 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListAdapter.kt:59-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:72— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:72-76 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:153-157 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:72` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
DM11 · Constructible invalid state· Constructible in an invalid state · ×5
Constructible in an invalid state: InstantComponentInfo app/src/main/kotlin/com/merxury/blocker/core/database/instantinfo/InstantComponentInfo.kt:23— `InstantComponentInfo`'s public constructor takes `packagePath`, `componentName`, `description` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `InstantComponentInfo` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: AppComponentEntity core/database/src/main/kotlin/com/merxury/blocker/core/database/app/AppComponentEntity.kt:30— `AppComponentEntity`'s public constructor takes `packageName`, `componentName` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `AppComponentEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: InstalledAppEntity core/database/src/main/kotlin/com/merxury/blocker/core/database/app/InstalledAppEntity.kt:27— `InstalledAppEntity`'s public constructor takes `packageName`, `versionName`, `label` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `InstalledAppEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: DebloatableComponentEntity core/database/src/main/kotlin/com/merxury/blocker/core/database/debloater/DebloatableComponentEntity.kt:34— `DebloatableComponentEntity`'s public constructor takes `packageName`, `componentName`, `simpleName`, `displayName`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `DebloatableComponentEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
Constructible in an invalid state: GeneralRuleEntity core/database/src/main/kotlin/com/merxury/blocker/core/database/generalrule/GeneralRuleEntity.kt:27— `GeneralRuleEntity`'s public constructor takes `name`, `iconUrl`, `company`, `description`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `GeneralRuleEntity` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×4
Edited copy of a member (24 corresponding lines) build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:40— build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:40-67 | build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt:40-63 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/LocalComponentDetailDataSource.kt:86— core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/LocalComponentDetailDataSource.kt:86-114 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/UserGeneratedComponentDetailDataSource.kt:102-125 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiCommands.kt:293— core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiCommands.kt:293-318 | core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuServiceController.kt:75-98 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:122— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:122-147 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:156-179 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (17 corresponding lines) · ×4
Edited copy of a member (17 corresponding lines) build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:87— build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:87-103 | build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt:82-101 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/component/LocalComponentRepository.kt:92— core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/component/LocalComponentRepository.kt:92-110 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/component/LocalComponentRepository.kt:112-128 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/ifw/IfwController.kt:62— core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/ifw/IfwController.kt:62-78 | core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/ifw/IfwController.kt:83-99 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:334— feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:334-350 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:352-368 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (16 corresponding lines) · ×4
Edited copy of a member (16 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:187— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:187-202 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:254-275 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:64— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:64-80 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/component/AppSortBottomSheet.kt:63-78 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/combined/CombinedController.kt:68— core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/combined/CombinedController.kt:68-83 | core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/combined/CombinedController.kt:88-103 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:275— feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:275-292 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/GroupEditorCard.kt:200-215 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (13 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:109— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:109-121 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:183-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:109` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) core/domain/src/main/kotlin/com/merxury/blocker/core/domain/applist/SearchAppListUseCase.kt:120— core/domain/src/main/kotlin/com/merxury/blocker/core/domain/applist/SearchAppListUseCase.kt:120-132 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:209-221 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `core/domain/src/main/kotlin/com/merxury/blocker/core/domain/applist/SearchAppListUseCase.kt:118` calls `flowOn` and `feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:207` 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 (13 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:138— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:138-150 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt:104-116 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt` and `feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:138` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 2) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:246— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:246-258 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:274-286 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:246` 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.
FileTooLong: impl/AppDetailScreen.kt feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt— FileTooLong — 940 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 440 over it, 1.88× 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: impl/AppDetailViewModel.kt feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt— FileTooLong — 698 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: AppDetailViewModel (120-957). The bar is 500 significant lines; this is 198 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: impl/SearchScreen.kt feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt— FileTooLong — 501 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1 over it, 1.00× 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.
MethodTooLong: SimpleGlobalIfwRuleScreenKt.SimpleGlobalIfwRuleScreen feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/SimpleGlobalIfwRuleScreen.kt:57— MethodTooLong — SimpleGlobalIfwRuleScreen 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: ScrollbarKt.Scrollbar core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/Scrollbar.kt:196— MethodTooLong — Scrollbar runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36× 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: ApkParser.getActivitiesWithIntentFilters core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:185— MethodTooLong — getActivitiesWithIntentFilters runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×3
Edited copy of a member (22 corresponding lines) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:139— core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:139-160 | core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:165-186 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/sdk/SdkContent.kt:51— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/sdk/SdkContent.kt:51-78 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloaterContent.kt:40-61 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/AppDetailActivity.kt:110— app/src/main/kotlin/com/merxury/blocker/ui/detail/AppDetailActivity.kt:110-131 | core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuInitializer.kt:111-134 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (21 corresponding lines) · ×3
Edited copy of a member (21 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentFragment.kt:169— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentFragment.kt:169-190 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListFragment.kt:185-205 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/item/RulesSettings.kt:38— feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/item/RulesSettings.kt:38-58 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/item/RulesSettings.kt:66-91 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/ui/AppDetailActionComponent.kt:53— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/ui/AppDetailActionComponent.kt:53-77 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/component/TopAppBarMoreMenu.kt:35-55 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×3
Edited copy of a member (23 corresponding lines) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:236— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:236-258 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:261-286 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:223— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:223-245 | app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:252-275 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:81— app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:81-103 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesFragment.kt:89-112 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×3
Edited copy of a member (19 corresponding lines) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:70— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:70-90 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:152-170 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.kt:126— core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.kt:126-144 | core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/shizuku/ShizukuAppController.kt:146-165 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/navigation/RuleDetailEntryProvider.kt:36— feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/navigation/RuleDetailEntryProvider.kt:36-54 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/navigation/SearchEntryProvider.kt:33-52 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×3
Edited copy of a member (18 corresponding lines) app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:33— app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:33-51 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportFeedbackViewModel.kt:57-74 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/screen/ErrorScreen.kt:39— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/screen/ErrorScreen.kt:39-56 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/screen/InitializingScreen.kt:39-57 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/GeneralRuleScreen.kt:200— feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/GeneralRuleScreen.kt:200-218 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:399-416 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×3
Edited copy of a member (11 corresponding lines) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:241— core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:241-251 | core/testing/src/main/kotlin/com/merxury/blocker/core/testing/controller/FakeIntentFirewall.kt:39-56 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/util/NotificationUtil.kt:33— core/rule/src/main/kotlin/com/merxury/blocker/core/rule/util/NotificationUtil.kt:33-43 | core/rule/src/main/kotlin/com/merxury/blocker/core/rule/util/NotificationUtil.kt:46-57 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/AppDetailActivity.kt:162— app/src/main/kotlin/com/merxury/blocker/ui/detail/AppDetailActivity.kt:162-175 | app/src/main/kotlin/com/merxury/blocker/ui/home/HomeActivity.kt:67-77 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×3
Edited copy of a member (13 corresponding lines) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:105— core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:105-117 | core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:122-134 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/summary/SummaryContent.kt:154— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/summary/SummaryContent.kt:154-166 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/summary/SummaryContent.kt:174-190 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:232— feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:232-244 | feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:249-261 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (8 corresponding lines) · ×3
Edited copy of a member (8 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt:59— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt:59-66 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListAdapter.kt:65-72 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AnalyticsExtension.kt:80— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AnalyticsExtension.kt:80-87 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/AnalyticsExtension.kt:31-38 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AnalyticsExtension.kt:89— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AnalyticsExtension.kt:89-96 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/AnalyticsExtension.kt:40-47 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (17 lines × 3) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:219— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:219-235 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:268-284 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:313-329 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:264` calls `getAttributeValue` and `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:309` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 3) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:80— core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:80-96 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:135-151 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:177-193 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:222— feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:222-238 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:253-269 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:282-298 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:222` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:204— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:204-215 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:141-152 — 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) app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesAdapter.kt:123— app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesAdapter.kt:123-134 | app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:194-205 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:190` calls `isLocalSetExist`, `resolve`, `exists` and `app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesAdapter.kt:120` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:104— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:104-115 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:134-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:235— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:235-245 | app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:265-275 | app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:287-297 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:235` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:45— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:45-55 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:108-118 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:182-192 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:45` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 3) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:248— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:248-258 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:270-280 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:292-302 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:248` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:57— app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:57-67 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportFeedbackViewModel.kt:80-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:57` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:68` calls `Suppress` and `feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportFeedbackViewModel.kt:91` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:844— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:844-854 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:236-246 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:74— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:74-84 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt:57-67 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt` and `feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:74` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
TooManyMethods: AppDetailViewModel feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:120— 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: GlobalIfwRuleViewModel feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:41— 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.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×2
Edited copy of a member (28 corresponding lines) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:247— core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportBlockerRulesWorker.kt:247-274 | core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ListAllComponentsToStorageWorker.kt:107-135 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (28 corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:77— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:77-114 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:122-149 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (33 corresponding lines) · ×2
Edited copy of a member (33 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:245— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:245-277 | feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/AddRuleScreen.kt:235-267 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (33 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:182— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:182-214 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/component/RuleMatchedAppList.kt:103-137 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×2
Edited copy of a member (14 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:218— app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:218-236 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchFragment.kt:231-244 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) core/database/src/main/kotlin/com/merxury/blocker/core/database/generalrule/GeneralRuleEntity.kt:43— core/database/src/main/kotlin/com/merxury/blocker/core/database/generalrule/GeneralRuleEntity.kt:43-57 | core/network/src/main/kotlin/com/merxury/blocker/core/network/model/NetworkGeneralRule.kt:37-50 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×2
Edited copy of a member (9 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesFragment.kt:114— app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/online/GeneralRulesFragment.kt:114-122 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListFragment.kt:248-256 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/GroupEditorCard.kt:184— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/GroupEditorCard.kt:184-192 | feature/ifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/ifwrule/impl/IfwRuleEditorScreen.kt:324-337 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (12 corresponding lines) · ×2
Edited copy of a member (12 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:197— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentViewModel.kt:197-208 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListViewModel.kt:76-89 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/NoComponentScreen.kt:36— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/NoComponentScreen.kt:36-51 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/component/RuleMatchedAppList.kt:88-99 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×2
Edited copy of a member (10 corresponding lines) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:388— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:388-402 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:550-559 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:352— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:352-362 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailViewModel.kt:286-295 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (7 corresponding lines) · ×2
Edited copy of a member (7 corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListFragment.kt:258— app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListFragment.kt:258-264 | app/src/main/kotlin/com/merxury/blocker/ui/home/settings/SettingsFragment.kt:359-366 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:191— core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:191-197 | core/testing/src/main/kotlin/com/merxury/blocker/core/testing/controller/FakeIntentFirewall.kt:95-101 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (30 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:269— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:269-298 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:308-337 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:269` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (30 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:88— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:88-117 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:141-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:88` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: `Icon` names `androidx.compose.material3.Icon` in one and `com.merxury.blocker.core.designsystem.icon.Icon` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (23 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:186— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:186-208 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/ViewToggle.kt:98-120 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:186` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:486— feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:486-508 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:544-566 — both copies are in the same file, so extract the 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 `feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:486` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:152— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:152-167 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt:118-133 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt` and `feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:152` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:44— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:44-59 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailPlaceholder.kt:44-59 — before extracting anything, compare `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt` and `feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailPlaceholder.kt` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:44` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15 lines × 2) feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:538— feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:538-552 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:577-591 — both copies are in the same file, so extract the 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) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:139— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:139-153 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatCollapsibleItem.kt:126-140 — 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 `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:139` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 3) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:41— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:41-54 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailPlaceholder.kt:41-54 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/screen/SearchDetailPlaceholder.kt:40-53 — before extracting anything, compare `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt` and `feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailPlaceholder.kt` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 3) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:793— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:793-806 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:482-495 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/screen/SearchResultScreen.kt:82-95 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:793` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:109— app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:109-122 | app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:162-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:109` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:115— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:115-128 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt:111-125 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt` and `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:115` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (8 lines × 2) app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentFragment.kt:170— app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentFragment.kt:170-177 | app/src/main/kotlin/com/merxury/blocker/ui/home/applist/AppListFragment.kt:186-193 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/ui/detail/component/ComponentFragment.kt:170` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) core/domain/src/main/kotlin/com/merxury/blocker/core/domain/controller/GetAppControllerUseCase.kt:34— core/domain/src/main/kotlin/com/merxury/blocker/core/domain/controller/GetAppControllerUseCase.kt:34-41 | core/domain/src/main/kotlin/com/merxury/blocker/core/domain/controller/GetServiceControllerUseCase.kt: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 (7 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:97— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:97-103 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt:88-94 — before extracting anything, compare `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt` and `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentListItem.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:97` it does not close everything it opens, so those exact lines 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) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:569— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:569-575 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailViewModel.kt:361-367 — 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 `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:569` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) build-logic/convention/src/main/kotlin/AndroidApplicationJacocoConventionPlugin.kt:26— build-logic/convention/src/main/kotlin/AndroidApplicationJacocoConventionPlugin.kt:26-34 | build-logic/convention/src/main/kotlin/AndroidLibraryJacocoConventionPlugin.kt:26-34 — before extracting anything, compare `build-logic/convention/src/main/kotlin/AndroidApplicationJacocoConventionPlugin.kt` and `build-logic/convention/src/main/kotlin/AndroidLibraryJacocoConventionPlugin.kt` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleScreen.kt:560— feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleScreen.kt:560-568 | feature/ifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/ifwrule/impl/IfwRuleEditorScreen.kt:142-150 — 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 `feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleScreen.kt:560` 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.
ApkParser.getActivitiesWithIntentFilters (cyclomatic 41) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:185— ApkParser.getActivitiesWithIntentFilters has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
IfwRuleEditorMapperKt.toIfwFilterOrNull (cyclomatic 32) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/editor/IfwRuleEditorMapper.kt:47— IfwRuleEditorMapperKt.toIfwFilterOrNull has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ScrollbarKt.Scrollbar (cyclomatic 24) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/Scrollbar.kt:196— ScrollbarKt.Scrollbar has cyclomatic complexity 24 (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.
IfwIntentFilterXmlKt.parseIntentFilter (cyclomatic 17) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/xml/IfwIntentFilterXml.kt:48— IfwIntentFilterXmlKt.parseIntentFilter 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.
SettingsScreenKt.SettingsScreen (cyclomatic 17) feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsScreen.kt:92— SettingsScreenKt.SettingsScreen 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.
ApkParser.getActivitiesWithIntentFilters (cognitive 87) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:185— ApkParser.getActivitiesWithIntentFilters has cognitive complexity 87 (threshold 15). Drivers by points: if/else 10 (42 pts), loops 5 (20 pts), match/switch 5 (19 pts), boolean chains 4, error handling 2 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
IfwRuleEditorMapperKt.toIfwFilterOrNull (cognitive 34) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/editor/IfwRuleEditorMapper.kt:47— IfwRuleEditorMapperKt.toIfwFilterOrNull has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 18). 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.
NestedScrollableHost.handleInterceptTouchEvent (cognitive 28) app/src/main/kotlin/com/merxury/blocker/view/NestedScrollableHost.kt:74— NestedScrollableHost.handleInterceptTouchEvent has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LocalDebloatableComponentDataSource.getDebloatableComponent (cognitive 27) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:47— LocalDebloatableComponentDataSource.getDebloatableComponent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 5 (9 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ScrollbarKt.Scrollbar (cognitive 24) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/Scrollbar.kt:196— ScrollbarKt.Scrollbar has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 10 (12 pts), if/else 10, error handling 1, loops 1 (nesting depth added 2). 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.
ThemeKt.BlockerTheme (cognitive 23) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/theme/Theme.kt:135— ThemeKt.BlockerTheme has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 4, boolean chains 3 (nesting depth added 4). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ImportBlockerRuleWorker.import (cognitive 23) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ImportBlockerRuleWorker.kt:185— ImportBlockerRuleWorker.import has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (23 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DebloatableAppSubItemKt.DebloatableAppSubItem (cognitive 22) feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppSubItem.kt:52— DebloatableAppSubItemKt.DebloatableAppSubItem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (21 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.
ConditionEditorCardKt.ConditionEditorCard (cognitive 19) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/ifwruleeditor/ConditionEditorCard.kt:59— ConditionEditorCardKt.ConditionEditorCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
SwitchSettingItemKt.SwitchSettingItem (cognitive 19) feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/item/SwitchSettingItem.kt:50— SwitchSettingItemKt.SwitchSettingItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GlobalIfwRuleMapperKt.toSimpleDraftOrNull (cognitive 18) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleMapper.kt:65— GlobalIfwRuleMapperKt.toSimpleDraftOrNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 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.
SyncWorker.syncRule (cognitive 17) sync/work/src/main/kotlin/com/merxury/blocker/sync/workers/SyncWorker.kt:113— SyncWorker.syncRule has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ClassTooLong: AppDetailViewModel feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:120— ClassTooLong — 586 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 186 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Near-duplicate member pair (40 shared lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:73— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:73-167 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatableAppList.kt:56-133 — These two members are variants of one another: 40 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 (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:158— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:158-200 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:206-252 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:258-298 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:304-342 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:348-391 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:393-437 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Edited copy of a member (61 corresponding lines) · ×1
Edited copy of a member (61 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:64— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:64-131 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatCollapsibleItem.kt:58-118 — These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 51+ corresponding lines) · ×1
Edited copies of one member (3 members, 51+ corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:44— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:44-95 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:107-168 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:181-231 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (39 corresponding lines) · ×1
Edited copy of a member (39 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:311— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:311-355 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportAndFeedbackScreen.kt:86-124 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (42 corresponding lines) · ×1
Edited copy of a member (42 corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:114— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:114-155 | feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/component/AppSortBottomSheet.kt:112-156 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×1
Edited copy of a member (29 corresponding lines) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:92— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:92-120 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:122-150 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:56— app/src/main/kotlin/com/merxury/blocker/util/BrowserUtil.kt:56-88 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/helpandfeedback/SupportFeedbackViewModel.kt:79-109 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:78— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:78-120 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:131-180 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:264— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:264-298 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:302-337 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (30 corresponding lines) · ×1
Edited copy of a member (30 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt:36— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt:36-69 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt:76-105 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (46 corresponding lines) · ×1
Edited copy of a member (46 corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItemMenuList.kt:42— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItemMenuList.kt:42-92 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentItemMenu.kt:42-87 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×1
Edited copy of a member (27 corresponding lines) feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:529— feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:529-562 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:569-595 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 23+ corresponding lines) · ×1
Edited copies of one member (3 members, 23+ corresponding lines) app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:105— app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:105-127 | app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:158-180 | app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:182-204 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 25+ corresponding lines) · ×1
Edited copies of one member (3 members, 25+ corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:40— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailPlaceHolder.kt:40-64 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailPlaceholder.kt:40-64 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/screen/SearchDetailPlaceholder.kt:39-64 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 20+ corresponding lines) · ×1
Edited copies of one member (4 members, 20+ corresponding lines) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt:125— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt:125-149 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt:162-181 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt:195-219 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApplicationUtil.kt:232-251 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (25 corresponding lines) · ×1
Edited copy of a member (25 corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:184— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/DropdownMenu.kt:184-208 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/ViewToggle.kt:95-120 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 24+ corresponding lines) · ×1
Edited copies of one member (3 members, 24+ corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:921— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:921-944 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1132-1156 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1163-1192 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 26+ corresponding lines) · ×1
Edited copies of one member (3 members, 26+ corresponding lines) feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:221— feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:221-248 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:252-277 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/component/FilteredComponentItem.kt:281-306 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 16+ corresponding lines) · ×1
Edited copies of one member (3 members, 16+ corresponding lines) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:247— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:247-262 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:269-284 | core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppListItem.kt:291-307 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (7 members, 21+ corresponding lines) · ×1
Edited copies of one member (7 members, 21+ corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:721— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:721-744 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:746-770 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:772-794 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailViewModel.kt:796-819 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:248-269 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:271-291 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsViewModel.kt:312-332 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 19+ corresponding lines) · ×1
Edited copies of one member (5 members, 19+ corresponding lines) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:168— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:168-186 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:190-208 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:212-232 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:236-256 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Tabs.kt:260-281 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 21+ corresponding lines) · ×1
Edited copies of one member (3 members, 21+ corresponding lines) feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:460— feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:460-481 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:517-538 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:603-623 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 21+ corresponding lines) · ×1
Edited copies of one member (4 members, 21+ corresponding lines) feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/GeneralRuleScreen.kt:226— feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/GeneralRuleScreen.kt:226-246 | feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/GeneralRuleScreen.kt:254-274 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:163-186 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchScreen.kt:193-216 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×1
Edited copy of a member (15 corresponding lines) feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:388— feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:388-402 | feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt:404-419 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (6 members, 16+ corresponding lines) · ×1
Edited copies of one member (6 members, 16+ corresponding lines) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:898— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:898-914 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:951-968 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:972-987 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1019-1036 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1080-1098 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:1105-1125 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 8+ corresponding lines) · ×1
Edited copies of one member (4 members, 8+ corresponding lines) core/provider/src/main/kotlin/com/merxury/blocker/provider/AnalyticsExtension.kt:23— core/provider/src/main/kotlin/com/merxury/blocker/provider/AnalyticsExtension.kt:23-30 | feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AnalyticsExtension.kt:23-30 | feature/generalrule/impl/src/main/kotlin/com/merxury/blocker/feature/generalrule/impl/AnalyticsExtension.kt:32-39 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/AnalyticsExtension.kt:23-30 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Duplicated block (37 lines × 2) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:492— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:492-528 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:274-310 — 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 (29 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:85— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:85-113 | feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloatCollapsibleItem.kt:74-102 — 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 `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:85` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (27 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:69— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:69-95 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:142-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:69` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (26 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:131— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:131-156 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:197-222 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/ScrollbarExt.kt:131` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23–24 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:91— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:91-114 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:127-149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/AlertDialog.kt:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:330— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:330-351 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:404-425 — 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 (21 lines × 2) core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:186— core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:186-206 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/component/RuleMatchedAppList.kt:106-126 — 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 `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:186` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/component/RuleMatchedAppList.kt:127` calls `Success`, `listOf` and `core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleList.kt:207` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (19 lines × 2) core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:129— core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:129-147 | core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:161-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:129` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:306— feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/AppListViewModel.kt:306-323 | feature/search/impl/src/main/kotlin/com/merxury/blocker/feature/search/impl/SearchViewModel.kt:379-396 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 4) app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:63— app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:63-79 | app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:81-97 | app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:99-115 | app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:117-133 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/provider/ComponentProvider.kt:63` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15–16 lines × 3) feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:538— feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:538-552 | feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:226-241 | feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsScreen.kt:230-245 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:538` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt:244` calls `ErrorScreen` and `feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/SettingsScreen.kt:246` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15 lines × 3) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:117— core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:117-131 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:159-173 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:200-214 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:117` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12–14 lines × 2) core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportIfwRulesWorker.kt:49— core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportIfwRulesWorker.kt:49-60 | core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ImportBlockerRuleWorker.kt:71-84 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportIfwRulesWorker.kt:49` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ImportBlockerRuleWorker.kt:70` calls `OptIn` and `core/rule/src/main/kotlin/com/merxury/blocker/core/rule/work/ExportIfwRulesWorker.kt:47` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11–12 lines × 4) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:97— core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:97-108 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:123-133 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:165-175 | core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:206-216 — 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 `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:136` calls `IntentFilterInfo` and `core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt:110` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10–11 lines × 2) app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:226— app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:226-236 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchFragment.kt:235-244 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/ui/detail/appinfo/AppInfoFragment.kt:226` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `e` to `Exception` in one and `Throwable` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (9 lines × 5) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:171— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:171-179 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:221-229 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:270-278 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:315-323 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:401-409 — 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 `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8–9 lines × 5) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:169— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:169-177 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:220-227 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:269-276 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:314-321 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:361-368 — 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 `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:169` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7–8 lines × 2) build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:97— build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:97-103 | build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt:94-101 — 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 `build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:97` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 4) app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:127— app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:127-132 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:139-144 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:151-156 | app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:163-168 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/kotlin/com/merxury/blocker/ui/home/advsearch/local/LocalSearchViewModel.kt:127` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 4) core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:207— core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:207-213 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:259-265 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:305-311 | core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:349-355 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:357` calls `getAttributeBooleanValue` and `core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt:215` 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) core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:144— core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:144-149 | core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:170-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `core/ifw-api/src/main/kotlin/com/merxury/core/ifw/IntentFirewall.kt:144` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Anemic entity: InstantComponentInfo app/src/main/kotlin/com/merxury/blocker/core/database/instantinfo/InstantComponentInfo.kt:23— `InstantComponentInfo` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service.
X2 · Cancellation propagation· Suspend function with a blocking request · ×1
Suspend function with a blocking request: getOnlineSetData app/src/main/kotlin/com/merxury/blocker/work/CheckRuleUpdateWork.kt:115— `getOnlineSetData` suspends, but makes its request with `newCall(…).execute()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/segmentedbuttons/SegmentedButtons.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/screenshot-testing/src/main/kotlin/com/merxury/blocker/core/testing/util/ScreenshotHelper.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Navigation.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/applist/impl/src/main/kotlin/com/merxury/blocker/feature/applist/impl/component/AppSortBottomSheet.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Background.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/LoadingWheel.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/licenses/LicensesScreen.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/component/ComponentList.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file app/src/main/kotlin/com/merxury/blocker/util/AppIconCache.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/settings/impl/src/main/kotlin/com/merxury/blocker/feature/impl/settings/item/SwitchSettingItem.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/rule/RuleItem.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/rule/GeneralRulesList.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/component/RuleMatchedAppList.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Chip.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/applist/AppList.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file app/src/main/kotlin/com/merxury/blocker/util/PreferenceUtil.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/ui/src/main/kotlin/com/merxury/blocker/core/ui/topbar/SelectedAppTopBar.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/ui/ShareRuleDialog.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Text.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file core/navigation/src/main/kotlin/com/merxury/blocker/core/navigation/NavigationState.kt:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
+ 16 more in this group — see findings.md.
M2 · Architecture documentation· Architecture diagram out of date · ×28
Architecture diagram out of date core/data/README.md:7— `core/data/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/data-test/README.md:7— `core/data-test/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/domain/README.md:7— `core/domain/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `git`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/provider/README.md:7— `core/provider/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `rule`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/rule/README.md:7— `core/rule/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `git`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/testing/README.md:7— `core/testing/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date core/ui/README.md:7— `core/ui/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `navigation`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/debloater/README.md:7— `feature/debloater/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `navigation`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date sync/sync-test/README.md:7— `sync/sync-test/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date sync/work/README.md:7— `sync/work/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `designsystem`, `domain`, `navigation`, `provider`, `ui`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/appdetail/api/README.md:7— `feature/appdetail/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/appdetail/impl/README.md:7— `feature/appdetail/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/applist/api/README.md:7— `feature/applist/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/applist/impl/README.md:7— `feature/applist/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/debloater/api/README.md:7— `feature/debloater/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/debloater/impl/README.md:7— `feature/debloater/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/generalrule/api/README.md:7— `feature/generalrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/generalrule/impl/README.md:7— `feature/generalrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/globalifwrule/api/README.md:7— `feature/globalifwrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/globalifwrule/impl/README.md:7— `feature/globalifwrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/ifwrule/api/README.md:7— `feature/ifwrule/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/ifwrule/impl/README.md:7— `feature/ifwrule/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/ruledetail/api/README.md:7— `feature/ruledetail/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/ruledetail/impl/README.md:7— `feature/ruledetail/impl/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Architecture diagram out of date feature/search/api/README.md:7— `feature/search/api/README.md` draws the system's parts, and the drawing no longer matches the code: it leaves out `git`, `provider`, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape.
Duplicated predicate app/src/main/kotlin/com/merxury/blocker/ui/home/settings/SettingsFragment.kt:277— `(folder == null) || !folder.canRead() || !folder.canWrite()` appears character-identically in 2 files — app/src/main/kotlin/com/merxury/blocker/ui/home/settings/SettingsFragment.kt, core/rule/src/main/kotlin/com/merxury/blocker/core/rule/util/StorageUtil.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt:73— `currentItem.packageName == changedItem.packageName && currentItem.name == changedItem.name` appears character-identically in 2 files — core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt, core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt:318— `it == "android.intent.action.VIEW" || it == "android.intent.action.SEND" || it == "android.intent.action.SEND_MULTIPLE"` appears character-identically in 2 files — core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt, core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/debloater/LocalDebloatableComponentDataSource.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:90— `it.isFile && "build${File.separator}generated" !in it.parentFile.path` appears character-identically in 2 files — build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt, build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt:85— `it.packageName == currentItem.packageName && it.name == currentItem.name` appears character-identically in 2 files — core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/ComponentInfoExt.kt, core/ui/src/main/kotlin/com/merxury/blocker/core/ui/extension/GeneralRuleSearchExt.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt:48— `javaSources != null && kotlinSources != null` appears character-identically in 2 files — build-logic/convention/src/main/kotlin/com/merxury/blocker/PrintTestApks.kt, build-logic/convention/src/main/kotlin/com/merxury/blocker/RenameBuildOutputs.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt:503— `listState.firstVisibleItemIndex == 0 && listState.firstVisibleItemScrollOffset == 0` appears character-identically in 2 files — feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/AppDetailScreen.kt, feature/ruledetail/impl/src/main/kotlin/com/merxury/blocker/feature/ruledetail/impl/RuleDetailScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/theme/BlockerDynamicTheme.kt:34— `useDynamicTheming && supportsDynamicTheming()` appears character-identically in 2 files — core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/theme/BlockerDynamicTheme.kt, core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/theme/Theme.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Fat interface: IPackageInstallerSession (18 abstract methods) core/component-controller/src/main/java/android/content/pm/IPackageInstallerSession.java:28— `IPackageInstallerSession` declares 18 abstract methods: `abandon`, `addChildSessionId`, `addClientProgress`, `close`, `commit`, `commit`, `getChildSessionIds`, `getNames`, `getParentSessionId`, `isMultiPackage`, `isStaged`, `openRead`, `openWrite`, `removeChildSessionId`, `removeSplit`, `setClientProgress`, `transfer`, `write`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 18 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: UserDataRepository (20 abstract methods) core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/userdata/UserDataRepository.kt:30— `UserDataRepository` declares 20 abstract methods: `setDarkThemeConfig`, `setDynamicColorPreference`, `setControllerType`, `setRuleServerProvider`, `setRuleBackupFolder`, `setBackupSystemApp`, `setRestoreSystemApp`, `setShowSystemApps`, `setShowServiceInfo`, `setAppSorting`, `setAppSortingOrder`, `setComponentShowPriority`, `setComponentSortingOrder`, `setComponentSorting`, `setTopAppType`, `setIsFirstTimeInitializationCompleted`, `setAppDisplayLanguage`, `setLibDisplayLanguage`, `getLibDisplayLanguage`, `setEnableStatistics`. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 33 significant file(s) lose their only recent owner: core/common/src/main/kotlin/com/merxury/blocker/core/utils/ManifestParser.kt, feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleViewModel.kt, feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/GlobalIfwRuleScreen.kt, core/common/src/main/kotlin/com/merxury/blocker/core/utils/ApkParser.kt, feature/globalifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/globalifwrule/impl/SimpleGlobalIfwRuleScreen.kt, feature/debloater/impl/src/main/kotlin/com/merxury/blocker/feature/debloater/impl/DebloaterViewModel.kt, core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/component/LocalComponentRepository.kt, feature/ifwrule/impl/src/main/kotlin/com/merxury/blocker/feature/ifwrule/impl/IfwRuleEditorScreen.kt (+25 more). Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (36 single-owned of 270 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 270 of the 635 production source files in this repository met that bar). They are anonymized user #2 (3 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: core/component-controller/src/main/kotlin/com/merxury/blocker/core/controllers/root/api/RootApiCommands.kt, core/common/src/main/kotlin/com/merxury/blocker/core/root/RootFileCommands.kt, core/common/src/main/kotlin/com/merxury/blocker/core/root/RootProcessCommand.kt.
No ADRs found build-logic/convention/build.gradle.kts:58— No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `build-logic/convention/build.gradle.kts` makes this repository a deployable product (line 58).
D34 · Knowledge Freshness· Orphaned files with no living knowledge · ×1
Orphaned files with no living knowledge — 41 of 272 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 272 of the 635 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/CollapsingTopAppBar.kt, core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/segmentedbuttons/SegmentedButtons.kt, core/screenshot-testing/src/main/kotlin/com/merxury/blocker/core/testing/util/ScreenshotHelper.kt, core/ui/src/main/kotlin/com/merxury/blocker/core/ui/SettingItem.kt, core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/TopAppBar.kt, core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/Navigation.kt, feature/appdetail/impl/src/main/kotlin/com/merxury/blocker/feature/appdetail/impl/bottomsheet/ComponentSortBottomSheet.kt, core/ui/src/main/kotlin/com/merxury/blocker/core/ui/collapseList/CollapsibleItem.kt (and 33 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling· Dependabot does not watch gitsubmodule · ×1
Dependabot does not watch gitsubmodule REDACTED:3— `REDACTED` schedules updates, but no `package-ecosystem` entry covers `gitsubmodule`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list.
No release approval gate REDACTED:138— 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.
X2 · Cancellation propagation· Not all suspend functions that make a request accept the coroutine's cancellation · ×1
Not all suspend functions that make a request accept the coroutine's cancellation — Only 0/1 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine's cancellation or pass one on, so a request keeps running after whatever wanted it has given up — a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends — Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` that cancels the `Call` — not a blocking `execute()`: `withContext(Dispatchers.IO)` moves the call off the caller's thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Off the main sequence: Blocker:core:common — Blocker:core:common: abstractness 0.19, instability 0.08, distance 0.73 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
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 6 file(s) — `core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/Scrollbar.kt`, `core/git/src/main/kotlin/com/merxury/blocker/core/git/GitClient.kt`, `core/ifw-api/src/main/kotlin/com/merxury/core/ifw/model/IfwFilterSummary.kt`, `core/navigation/src/main/kotlin/com/merxury/blocker/core/navigation/Navigator.kt`, `core/network/src/main/kotlin/com/merxury/blocker/core/network/fake/FakeAssetManager.kt`, … (+1 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
0
—
Run 01a1e75d-da13-7e28-9a74-fce4194af6aa · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 55 · Warnings: 239 · Recommendations: 89 · Info: 1 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 02:37 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.