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

HellGuy39/HellNotes

Measured 16 November 2026, 17:38 UTC, at code version 4540dc4

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

Bus factor is not measured: No living knowledge left to concentrate.

CAI score 47.7out of 100 Weak
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: 27,071 lines of product code in 33 projects, tests not counted · Estimated rebuild effort: about 0.2 person-years · Weakest lens: Production Readiness, 24.7

Findings by how serious they are

1 critical 103 serious 165 minor

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

This survey was produced by

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

43of 43 dimensions measured by tools.
258of 269 findings point to an exact file and line, so you can open each one in the code. The other 11 concern the repository as a whole, such as missing documentation.
43dimensions across 7 lenses, read from 27,071 lines of product code in 33 projects.
Chapters

Executive summary

HellGuy39/HellNotes falls short of our standard for production because we found no working pipeline that builds or tests changes to the code and no automated security scanning of the code, its secrets or its dependencies. It scores 47.7 out of 100 and is rated Weak, and its one critical finding doesn't concern security.

Production Readiness, at 24.7, is the weakest lens and counts most in the score. The best first step is improving the documentation, worth about 9.3 points. Adding an automated build and test pipeline would lift Production Readiness itself, worth about 8.5 points. Raising Production Readiness to 70 would lift the score to about 63.8.

The inner part of the code that depends on an outer part needs turning around so it points inward.

The product code is 27,071 lines, about €30,000 to rebuild.

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

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

If Production Readiness rose from 24.7 to 70, the lowest score rated Strong, the score would rise from 47.7 to about 63.8.

Code composition: what the lines of code are
Product code 94%Tests 6%
Rebuild cost: about €30,000 · Estimate
Cost to rebuild€10,000 to €51,000, for 168 to 532 hours of work, about 0.2 person-years for one engineer
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 48. 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.
SizeMedium: 27,071 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

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

Top priorities

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

1
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md.
Raises the score by about 9.3 points · Low effort · Documentation Quality
2
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.
Raises the score by about 9.3 points · Low effort · ADR Quality
3
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 8.5 points · Medium effort · CI/CD gates

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €30,000 to build again, about 0.2 person-years of work. Its weakest lens is Production Readiness, at 24.7 (Critical). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 1 Documentation finding(s) in Documentation Quality. Of all the actions in this report, it raises the score most for the work it takes: about 9.3 points for low effort, because it clears the 1 Documentation Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort

Architecture — module dependency graph

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

arch HellNotes:app HellNotes:app HellNotes:core:common HellNotes:core:common HellNotes:app->HellNotes:core:common HellNotes:core:data HellNotes:core:data HellNotes:app->HellNotes:core:data HellNotes:core:domain HellNotes:core:domain HellNotes:app->HellNotes:core:domain HellNotes:core:model HellNotes:core:model HellNotes:app->HellNotes:core:model HellNotes:core:ui HellNotes:core:ui HellNotes:app->HellNotes:core:ui HellNotes:feature:about-app HellNotes:feature:about-app HellNotes:app->HellNotes:feature:about-app HellNotes:feature:backup HellNotes:feature:backup HellNotes:app->HellNotes:feature:backup HellNotes:feature:changelog HellNotes:feature:changelog HellNotes:app->HellNotes:feature:changelog HellNotes:feature:home HellNotes:feature:home HellNotes:app->HellNotes:feature:home HellNotes:feature:label-edit HellNotes:feature:label-edit HellNotes:app->HellNotes:feature:label-edit HellNotes:feature:label-selection HellNotes:feature:label-selection HellNotes:app->HellNotes:feature:label-selection HellNotes:feature:language-selection HellNotes:feature:language-selection HellNotes:app->HellNotes:feature:language-selection HellNotes:feature:lock HellNotes:feature:lock HellNotes:app->HellNotes:feature:lock HellNotes:feature:lock-selection HellNotes:feature:lock-selection HellNotes:app->HellNotes:feature:lock-selection HellNotes:feature:lock-setup HellNotes:feature:lock-setup HellNotes:app->HellNotes:feature:lock-setup HellNotes:feature:note-detail HellNotes:feature:note-detail HellNotes:app->HellNotes:feature:note-detail HellNotes:feature:note-style-edit HellNotes:feature:note-style-edit HellNotes:app->HellNotes:feature:note-style-edit HellNotes:feature:note-swipe-edit HellNotes:feature:note-swipe-edit HellNotes:app->HellNotes:feature:note-swipe-edit HellNotes:feature:on-boarding HellNotes:feature:on-boarding HellNotes:app->HellNotes:feature:on-boarding HellNotes:core:common->HellNotes:core:model HellNotes:core:data->HellNotes:core:common HellNotes:core:data->HellNotes:core:domain HellNotes:core:data->HellNotes:core:model HellNotes:core:domain->HellNotes:core:common HellNotes:core:domain->HellNotes:core:model HellNotes:core:ui->HellNotes:core:common HellNotes:core:ui->HellNotes:core:domain HellNotes:core:ui->HellNotes:core:model HellNotes:feature:about-app->HellNotes:core:common HellNotes:feature:about-app->HellNotes:core:domain HellNotes:feature:about-app->HellNotes:core:model HellNotes:feature:about-app->HellNotes:core:ui HellNotes:feature:backup->HellNotes:core:common HellNotes:feature:backup->HellNotes:core:domain HellNotes:feature:backup->HellNotes:core:model HellNotes:feature:backup->HellNotes:core:ui HellNotes:feature:changelog->HellNotes:core:common HellNotes:feature:changelog->HellNotes:core:domain HellNotes:feature:changelog->HellNotes:core:model HellNotes:feature:changelog->HellNotes:core:ui HellNotes:feature:home->HellNotes:core:common HellNotes:feature:home->HellNotes:core:domain HellNotes:feature:home->HellNotes:core:model HellNotes:feature:home->HellNotes:core:ui HellNotes:feature:label-edit->HellNotes:core:common HellNotes:feature:label-edit->HellNotes:core:domain HellNotes:feature:label-edit->HellNotes:core:model HellNotes:feature:label-edit->HellNotes:core:ui HellNotes:feature:label-selection->HellNotes:core:common HellNotes:feature:label-selection->HellNotes:core:domain HellNotes:feature:label-selection->HellNotes:core:model HellNotes:feature:label-selection->HellNotes:core:ui HellNotes:feature:language-selection->HellNotes:core:common HellNotes:feature:language-selection->HellNotes:core:domain HellNotes:feature:language-selection->HellNotes:core:model HellNotes:feature:language-selection->HellNotes:core:ui HellNotes:feature:lock->HellNotes:core:common HellNotes:feature:lock->HellNotes:core:domain HellNotes:feature:lock->HellNotes:core:model HellNotes:feature:lock->HellNotes:core:ui HellNotes:feature:lock-selection->HellNotes:core:common HellNotes:feature:lock-selection->HellNotes:core:domain HellNotes:feature:lock-selection->HellNotes:core:model HellNotes:feature:lock-selection->HellNotes:core:ui HellNotes:feature:lock-setup->HellNotes:core:common HellNotes:feature:lock-setup->HellNotes:core:domain HellNotes:feature:lock-setup->HellNotes:core:model HellNotes:feature:lock-setup->HellNotes:core:ui HellNotes:feature:note-detail->HellNotes:core:common HellNotes:feature:note-detail->HellNotes:core:domain HellNotes:feature:note-detail->HellNotes:core:model HellNotes:feature:note-detail->HellNotes:core:ui HellNotes:feature:note-style-edit->HellNotes:core:common HellNotes:feature:note-style-edit->HellNotes:core:domain HellNotes:feature:note-style-edit->HellNotes:core:model HellNotes:feature:note-style-edit->HellNotes:core:ui HellNotes:feature:note-swipe-edit->HellNotes:core:common HellNotes:feature:note-swipe-edit->HellNotes:core:domain HellNotes:feature:note-swipe-edit->HellNotes:core:model HellNotes:feature:note-swipe-edit->HellNotes:core:ui HellNotes:feature:on-boarding->HellNotes:core:common HellNotes:feature:on-boarding->HellNotes:core:domain HellNotes:feature:on-boarding->HellNotes:core:model HellNotes:feature:on-boarding->HellNotes:core:ui __more__ +13 more projects

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.

229 modules, with 356 dependencies between them. 3 loops run through 7 of the modules, marked above the diagonal.

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

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 core.domain.repository.store2 core.model.repository.local.file3 core.model.repository.remote4 core.model.wrapper5 core.ui.resources.wrapper6 core.ui.state7 core.model8 core.storeapi.review.factory9 core.domain.logger10 core.domain.repository.remote11 core.model.repository.local.datastore12 core.storeapi.di13 core.data.repository.remote14 core.domain.repository.settings15 core.model.repository.local.database16 core.database.dao17 core.domain.repository.notes18 core.domain.repository.system19 core.domain.usecase.backup20 core.ui.components21 feature.locksetup22 core.domain.usecase.reminder23 core.domain.usecase.trash24 feature.home25 feature.lock26 tools27 core.domain.usecase28 core.domain.usecase.note29 feature.home.reminders30 feature.home.trash31 core.domain.usecase.archive32 core.domain.usecase.label33 feature.home.notes34 feature.notedetail35 feature.search36 feature.update37 core.data.repository.local38 feature.home.archive39 feature.home.label40 core.data.di
1 core.domain.repository.store
2 core.model.repository.local.file
3 core.model.repository.remote
4 core.model.wrapper
5 core.ui.resources.wrapper
6 core.ui.state
7 core.model17
8 core.storeapi.review.factory1
9 core.domain.logger1
10 core.domain.repository.remote11
11 core.model.repository.local.datastore1
12 core.storeapi.di12
13 core.data.repository.remote111
14 core.domain.repository.settings4
15 core.model.repository.local.database1
16 core.database.dao1
17 core.domain.repository.notes15
18 core.domain.repository.system11
19 core.domain.usecase.backup221
20 core.ui.components3
21 feature.locksetup111
22 core.domain.usecase.reminder12441
23 core.domain.usecase.trash212
24 feature.home214121
25 feature.lock212
26 tools2117
27 core.domain.usecase1141
28 core.domain.usecase.note53171
29 feature.home.reminders111113
30 feature.home.trash111123
31 core.domain.usecase.archive111
32 core.domain.usecase.label3312
33 feature.home.notes111131
34 feature.notedetail133414
35 feature.search11211
36 feature.update11111
37 core.data.repository.local51445121
38 feature.home.archive111131
39 feature.home.label1121231
40 core.data.di11156
Uses a module listed above itPart of a loopThe module itself
1 core.domain.repository.store2 core.model.repository.local.file3 core.model.repository.remote4 core.model.wrapper5 core.ui.resources.wrapper6 core.ui.state7 core.model8 core.storeapi.review.factory9 core.domain.logger10 core.domain.repository.remote11 core.model.repository.local.datastore12 core.storeapi.di13 core.data.repository.remote14 core.domain.repository.settings15 core.model.repository.local.database16 core.database.dao17 core.domain.repository.notes18 core.domain.repository.system19 core.domain.usecase.backup20 core.ui.components21 feature.locksetup22 core.domain.usecase.reminder23 core.domain.usecase.trash24 feature.home25 feature.lock26 tools27 core.domain.usecase28 core.domain.usecase.note29 feature.home.reminders30 feature.home.trash31 core.domain.usecase.archive32 core.domain.usecase.label33 feature.home.notes34 feature.notedetail35 feature.search36 feature.update37 core.data.repository.local38 feature.home.archive39 feature.home.label40 core.data.dicore.domain.repository.store1core.model.repository.local.file2core.model.repository.remote3core.model.wrapper4core.ui.resources.wrapper5core.ui.state6core.model7core.storeapi.review.factory8core.domain.logger9core.domain.repository.remote10core.model.repository.local.datastore11core.storeapi.di12core.data.repository.remote13core.domain.repository.settings14core.model.repository.local.database15core.database.dao16core.domain.repository.notes17core.domain.repository.system18core.domain.usecase.backup19core.ui.components20feature.locksetup21core.domain.usecase.reminder22core.domain.usecase.trash23feature.home24feature.lock25tools26core.domain.usecase27core.domain.usecase.note28feature.home.reminders29feature.home.trash30core.domain.usecase.archive31core.domain.usecase.label32feature.home.notes33feature.notedetail34feature.search35feature.update36core.data.repository.local37feature.home.archive38feature.home.label39core.data.di40171111112111411151122131111244121221412121221171141531711111131111231113312111131133414112111111151445121111131112123111156+189 more modules (most-connected shown)

At a glance — Code Health · 95.2 · Exemplary ·

At a glance — Architecture · 87.5 · Strong ·

At a glance — Maturity · 47.6 · Weak · gated by D34, M2 ·

At a glance — Readiness · 24.7 · Critical · gated by P1, P3 ·

At a glance — Security · 100.0 · Exemplary ·

At a glance — Domain Modelling · 75.8 · Strong ·

At a glance — Performance · 94.3 · Exemplary ·

Roadmap

Top priorities: Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts; Resolve the 154 Orphaned file finding(s) in Knowledge Freshness — start with build.gradle.kts (2), NoteDetailRoute.kt, NoteDetailContent.kt.

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

Do thisHelpsEffortDimension
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md.+9.3 ptsLowDocumentation Quality
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.+9.3 ptsLowADR Quality
Add a CI workflow that builds and runs the test suite on every push/PR.+8.5 ptsMediumCI/CD gates
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.+6.6 ptsMediumArchitecture documentation
Resolve the 154 Orphaned file finding(s) in Knowledge Freshness — start with build.gradle.kts (2), NoteDetailRoute.kt, NoteDetailContent.kt.+9.3 ptsHighKnowledge Freshness
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).+4.0 ptsMediumDR & Backup
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+3.2 ptsMediumRelease Hygiene
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.+2.3 ptsMediumConstructible invalid state

File quality

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

FileScoreBandWorst signal
feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.kt6.7MixedExplicit Debt: TodoComment
feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt7.0MixedCognitive Complexity: LockSetupPasswordScreenKt.LockSetupPasswordScreen (cognitive 16)
core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt7.1MixedCode Duplication: Edited copy of a member (50 corresponding lines)
feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt7.2MixedCode Duplication: Near-duplicate member pair (72 shared lines)
feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt7.2MixedCode Duplication: Edited copies of one member (5 members, 16+ corresponding lines)
feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailViewModel.kt7.3MixedExplicit Debt: TodoComment
feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt7.4MixedCode Duplication: Edited copies of one member (3 members, 77+ corresponding lines)
core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt7.4MixedCode Duplication: Edited copy of a member (20 corresponding lines)
core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt7.4MixedCode Duplication: Edited copy of a member (12 corresponding lines)
core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.kt7.8MixedCognitive Complexity: CustomDialogKt.CustomDialog (cognitive 19)
core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt7.8MixedCognitive Complexity: NoteChipGroupKt.NoteChipGroup (cognitive 16)
feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt7.8MixedCognitive Complexity: LockSetupPinScreenKt.LockSetupPinScreen (cognitive 16)
feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt7.8MixedGod Classes: MethodTooLong: NoteDetailRouteKt.NoteDetailRoute
feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt7.8MixedGod Classes: MethodTooLong: ReminderEditScreenKt.ReminderEditScreen
feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt7.8MixedCode Duplication: Members sharing a duplicated core (5 members, 50+ identical tokens)
feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt7.8MixedCode Duplication: Members sharing a duplicated core (4 members, 50+ identical tokens)
feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt7.8MixedCode Duplication: Edited copies of one member (3 members, 48+ corresponding lines)
core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt7.8MixedCode Duplication: Edited copy of a member (36 corresponding lines)
feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt7.8MixedCode Duplication: Edited copy of a member (27 corresponding lines)
feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt7.8MixedCode Duplication: Edited copy of a member (27 corresponding lines)

How the grades work

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

Critical — 1

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

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

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

Could not be resolved — 14

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

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

What we checked — 43 dimensions across the health lenses
D1D2D3D4D5D6D13D14D15D17D19D20D26D28D29D34D35D44AX10AX2AX3AX4AX6DM11DM12DM6M1M2M3M4P1P3P5P6PF1PF3X1X12X2X21X27X3X5

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

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

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

Tools & methods

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

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

Every finding is locatable in findings.md. Run 01a1e570-3993-79d9-a005-56a544dc5558.

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

Run transparency — what happened this run

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

  • D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.kt) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.kt) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: no test result was produced. 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 — 35 Maven/Gradle manifest(s) were read, stating a version for 62 dependency(ies) and leaving 9 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. All 154 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness). Counted over 154 of the 413 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
  • 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.
  • 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 (feature/update/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.
  • 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 (feature/update/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 — 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 measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither.
  • GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's Kotlin is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's Kotlin 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.
  • 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.
  • X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • 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.
  • 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.
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity10.0 / 10Exemplary✓ Tool-verified

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

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

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

0 method(s) exceeded the cyclomatic complexity threshold of 15. A further 1 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 NoteDetailViewModel.send at 18 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailViewModel.kt (NoteDetailViewModel.send at 18). 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.

✓ On the Gold path — maintain.

Detailed fixes: d1_recommendation.md.

D2 · Cognitive Complexity9.4 / 10Stronggated by 4 serious findings✓ Tool-verified

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

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

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

4 method(s) exceeded the cognitive complexity threshold of 15; the worst was CustomDialogKt.CustomDialog at 19.

CustomDialogKt.CustomDialog (cognitive 19)core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.kt:41
NoteChipGroupKt.NoteChipGroup (cognitive 16)core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:38
LockSetupPasswordScreenKt.LockSetupPasswordScreen (cognitive 16)feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:42
LockSetupPinScreenKt.LockSetupPinScreen (cognitive 16)feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:42

What to do

  1. Bring the 4 bodies over 15 down to 15 or less in Cognitive Complexity — start with CustomDialogKt.CustomDialog (cognitive 19), NoteChipGroupKt.NoteChipGroup (cognitive 16), LockSetupPasswordScreenKt.LockSetupPasswordScreen (cognitive 16). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cognitive Complexity from 9.4 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.

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

D3 · God Classes8.6 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

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

8 over-large unit(s) detected — types, modules or files that carry too much.

MethodTooLong: NoteDetailRouteKt.NoteDetailRoute · ×8feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:63

What to do

  1. Resolve the 8 MethodTooLong finding(s) in God Classes — start with NoteDetailRoute.kt, ReminderEditScreen.kt, NoteDetailContent.kt. — One of this dimension's main actionable groups (8 warning-level).

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

D4 · Code Duplication5.8 / 10Adequate✓ Tool-verified

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

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

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

39 duplicated block group(s) detected. 10.5 % of the production lines (2,834 of 27,071) are in a reported copy. A further 35 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.

Duplicated block (15 lines × 2) · ×3feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:36
Duplicated block (14 lines × 2) · ×3core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:49
Duplicated block (12 lines × 2) · ×3feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:267
Edited copy of a member (27 corresponding lines) · ×2feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:30
Edited copy of a member (20 corresponding lines) · ×2core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:61

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

What to do

  1. Resolve the 3 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with LabelSelectionNavigation.kt, LockScreenPassword.kt, PrivacyPolicyScreen.kt. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 3 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with HNCheckboxItem.kt, ChangelogScreen.kt, LabelSсreen.kt. — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 3 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with ReminderEditScreen.kt, PlayStoreReviewProvider.kt, CustomDialog.kt. — One of this dimension's main actionable groups (3 warning-level).

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

D5 · Coupling9.2 / 10Stronggated by 3 serious findings✓ Tool-verified

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

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

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

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

33 production modules (Gradle), 0 dependency cycle(s), 1 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; 3 module(s) off the main sequence, with abstractness counted on 32 of the 33 (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: HellNotes:core:model · ×2
Unstable project HellNotes:core:data
Off the main sequence: HellNotes:core:common

What to do

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

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

D6 · Cohesion (LCOM4)10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

0 of 48 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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

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

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

0 of 22 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 35 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. 9 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 40 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.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

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

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

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

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D17 · Explicit Debt9.9 / 10Stronggated by 9 serious findings✓ Tool-verified

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

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

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

9 deducted task-comment markers across 27071 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.

TodoComment · ×9feature/search/src/main/java/com/hellguy39/hellnotes/feature/search/SearchRoute.kt:35

What to do

  1. Resolve the 9 TodoComment finding(s) in Explicit Debt — start with NoteDetailViewModel.kt (2), SearchRoute.kt, ReminderEditViewModel.kt. — One of this dimension's main actionable groups (9 warning-level).

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

D19 · Documentation Quality0.0 / 10Critical✓ Tool-verified

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

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

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

0 of 1 documentation facets pass in full; short on: F2 example. 1 document(s) read across 1 unit(s).

Documentation: no build, run or usage exampleREADME.md:1

What to do

  1. Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

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

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

No architecture decision records were found.

No ADRs foundbuild-logic/convention/build.gradle.kts:41

What to do

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

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

D26 · Project Cohesion9.4 / 10Exemplary✓ Tool-verified

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

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

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

1 of 33 build units (Gradle) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesioncore/ui/build.gradle.kts:1

✓ On the Gold path — maintain.

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

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

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.

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

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

semgrep found no security issues. semgrep hit a parse error in 1 file(s) — `gradlew` (line 177) — 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.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D34 · Knowledge Freshness0.0 / 10Critical✓ Tool-verified

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

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

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

154 of 154 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt. Counted over 154 of the 413 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×154feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:1
Dormant codebase

What to do

  1. Resolve the 154 Orphaned file finding(s) in Knowledge Freshness — start with build.gradle.kts (2), NoteDetailRoute.kt, NoteDetailContent.kt. — One of this dimension's main actionable groups (154 recommendation-level).
  2. Resolve the 1 Dormant codebase 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.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition9.5 / 10Exemplary✓ Tool-verified

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

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

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

AX2 · Stateful singletons10.0 / 10Exemplary✓ Tool-verified

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.

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

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

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

AX4 · Dependency direction6.8 / 10Adequate✓ Tool-verified

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

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

  • `HellNotes:feature:about-app` is a Application project but references `HellNotes:core:ui`, 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.

What to do

  • Keep dependencies pointing inward: domain/application define interfaces, infrastructure/web implement them (Dependency Inversion).
AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

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

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

DM11 · Constructible invalid state4.4 / 10Weak✓ Tool-verified

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.

  • `ChecklistEntity`'s public constructor takes `name` 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 `ChecklistEntity` 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/java/com/hellguy39/hellnotes/core/database/entity/ChecklistEntity.kt:26
  • `LabelEntity`'s public constructor takes `name` 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 `LabelEntity` 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/java/com/hellguy39/hellnotes/core/database/entity/LabelEntity.kt:25
  • `NoteEntity`'s public constructor takes `title`, `note` 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 `NoteEntity` 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/java/com/hellguy39/hellnotes/core/database/entity/NoteEntity.kt:25
  • `ReminderEntity`'s public constructor takes `message`, `repeat` 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 `ReminderEntity` 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/java/com/hellguy39/hellnotes/core/database/entity/ReminderEntity.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.
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.

DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

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.

M1 · Documentation (README)6.0 / 10Adequate✓ Tool-verified

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

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

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
  • No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

  • No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.

What to do

  • Add a CI workflow that builds and runs the test suite on every push/PR.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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

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

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

What to do

  • Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P5 · DR & Backup4.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF1 · Benchmark discipline9.0 / 10Exemplary✓ Tool-verified

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.

PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

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

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

X2 · Cancellation propagation10.0 / 10Exemplary○ Nothing flagged

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.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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

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

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

Other · Code Health — Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

X5 · Nullable reference types10.0 / 10Exemplary✓ Tool-verified

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

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

Reference — by lens

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

LensScoreRatingImpact
Code Health95.2ExemplarySolid.
Architecture87.5StrongSolid.
Maturity47.6Weak — gated by D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness24.7Critical — gated by P1, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security100.0ExemplaryStrongest area.
Domain Modelling75.8StrongSolid.
Performance94.3ExemplarySolid.
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 — 1 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.

  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
Not included — 82 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.
  • AXB2 Runtime readiness — 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 — ~1841 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 — 35 Maven/Gradle manifest(s) were read, stating a version for 62 dependency(ies) and leaving 9 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
  • 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 — N/A — too few peers to establish a naming convention (4288 declarations, no unit with a dominant convention).
  • 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 .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) — 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.
  • D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) 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
  • DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
  • DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
  • DM9 Scattered domain decisions — not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither
  • 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 — no CI workflow found
  • P2 Observability — This repository's JVM source (33 module(s), 372 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
  • X16 Unfloored truncation loop — 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
  • X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • 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
  • X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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.

Critical — 1 finding(s)
AX4 · Dependency direction · Dependency-rule violation · ×1
  • Dependency-rule violation: HellNotes:feature:about-app (Application) → HellNotes:core:ui (Web) — `HellNotes:feature:about-app` is a Application project but references `HellNotes:core:ui`, 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.
Serious — 103 finding(s)
D17 · Explicit Debt · TodoComment · ×9
  • TodoComment feature/search/src/main/java/com/hellguy39/hellnotes/feature/search/SearchRoute.kt:35 — // TODO: refactor — 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 feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.kt:75 — // TODO: Handle null — 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 feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailViewModel.kt:284 — // TODO: Handle null — 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 feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailViewModel.kt:353 — // TODO: Handle that note not found — 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/ui/src/main/java/com/hellguy39/hellnotes/core/ui/DateTimeUtils.kt:24 — // TODO: Migrate to DateManager — 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/model/src/main/java/com/hellguy39/hellnotes/core/model/notification/HellNotesNotificationChannel.kt:21 — // TODO: check that name changes — 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/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/reminder/ActivateReminderUseCase.kt:31 — // TODO: handle null — 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/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/reminder/DeleteReminderUseCase.kt:29 — // TODO: handle null — 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/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/reminder/UpdateReminderUseCase.kt:30 — // TODO: handle null — 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.
D3 · God Classes · MethodTooLong · ×8
  • MethodTooLong: NoteDetailRouteKt.NoteDetailRoute feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:63 — MethodTooLong — NoteDetailRoute runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52× 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: ReminderEditScreenKt.ReminderEditScreen feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:58 — MethodTooLong — ReminderEditScreen runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: NoteDetailContentKt.NoteDetailContent feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/components/NoteDetailContent.kt:76 — MethodTooLong — NoteDetailContent runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78× 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: DrawerSheetContentKt.DrawerSheetContent feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/components/DrawerSheetContent.kt:63 — MethodTooLong — DrawerSheetContent 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: LabelRouteKt.LabelRoute feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelRoute.kt:62 — MethodTooLong — LabelRoute runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: LockSetupPasswordScreenKt.LockSetupPasswordScreen feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:42 — MethodTooLong — LockSetupPasswordScreen runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: LockSetupPinScreenKt.LockSetupPinScreen feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:42 — MethodTooLong — LockSetupPinScreen runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AboutAppScreenContentKt.AboutAppScreenContent feature/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/components/AboutAppScreenContent.kt:47 — MethodTooLong — AboutAppScreenContent runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× 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.
DM11 · Constructible invalid state · Constructible in an invalid state · ×4
  • Constructible in an invalid state: ChecklistEntity core/database/src/main/java/com/hellguy39/hellnotes/core/database/entity/ChecklistEntity.kt:26 — `ChecklistEntity`'s public constructor takes `name` 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 `ChecklistEntity` 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: LabelEntity core/database/src/main/java/com/hellguy39/hellnotes/core/database/entity/LabelEntity.kt:25 — `LabelEntity`'s public constructor takes `name` 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 `LabelEntity` 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: NoteEntity core/database/src/main/java/com/hellguy39/hellnotes/core/database/entity/NoteEntity.kt:25 — `NoteEntity`'s public constructor takes `title`, `note` 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 `NoteEntity` 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: ReminderEntity core/database/src/main/java/com/hellguy39/hellnotes/core/database/entity/ReminderEntity.kt:27 — `ReminderEntity`'s public constructor takes `message`, `repeat` 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 `ReminderEntity` 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 · Duplicated block (15 lines × 2) · ×3
  • Duplicated block (15 lines × 2) feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:36 — feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:36-50 | feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/navigations/ReminderEditNavigaiton.kt:37-51 — before extracting anything, compare `feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt` and `feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/navigations/ReminderEditNavigaiton.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:36` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/navigations/ReminderEditNavigaiton.kt:35` calls `asNavigationArgument` and `feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:34` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPassword.kt:61 — feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPassword.kt:61-75 | feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPin.kt:52-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPassword.kt:61` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:41 — feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:41-55 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt:41-55 — before extracting anything, compare `feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt` and `feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.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.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×3
  • Duplicated block (14 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:49 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:49-62 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:110-123 — 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/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:49` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:54 — feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:54-67 | feature/update/src/main/java/com/hellguy39/hellnotes/feature/update/UpdateScreen.kt:38-51 — 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/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelSсreen.kt:87 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelSсreen.kt:87-100 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersScreen.kt:84-97 — 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/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelSсreen.kt:87` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×3
  • Duplicated block (12 lines × 2) feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:267 — feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:267-278 | feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:343-354 — 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/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.kt:267` 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) core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:53 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:53-64 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/RuStoreReviewProvider.kt:55-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: `ReviewInfo` names `com.google.android.play.core.review.ReviewInfo` in one and `ru.rustore.sdk.review.model.ReviewInfo` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.kt:212 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.kt:212-223 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDropdownMenu.kt:102-113 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×2
  • Edited copy of a member (27 corresponding lines) feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:30 — feature/label-selection/src/main/java/com/hellguy39/hellnotes/feature/labelselection/navigation/LabelSelectionNavigation.kt:30-56 | feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/navigations/ReminderEditNavigaiton.kt:30-57 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:67 — feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:67-93 | feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:95-121 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×2
  • Edited copy of a member (20 corresponding lines) core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:61 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:61-80 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/RuStoreUpdateProvider.kt:64-83 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/focus/RequestFocusBeAvailable.kt:29 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/focus/RequestFocusBeAvailable.kt:29-48 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/focus/RequestFocusWhen.kt:47-68 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×2
  • Edited copy of a member (15 corresponding lines) core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/note/GetAllNoteWrappersUseCase.kt:34 — core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/note/GetAllNoteWrappersUseCase.kt:34-48 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/trash/GetAllNoteWrappersAtTrashUseCase.kt:34-48 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:163 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:163-177 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:159-173 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×2
  • Edited copy of a member (12 corresponding lines) core/data/src/main/java/com/hellguy39/hellnotes/core/data/database/BackupManagerImpl.kt:33 — core/data/src/main/java/com/hellguy39/hellnotes/core/data/database/BackupManagerImpl.kt:33-44 | core/data/src/main/java/com/hellguy39/hellnotes/core/data/database/BackupManagerImpl.kt:46-57 — 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/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:66 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:66-80 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/RuStoreReviewProvider.kt:68-79 — 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 copies of one member (4 members, 8+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 8+ corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:117 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:117-124 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:193-200 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:176-183 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersViewModel.kt:140-147 — 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.
  • Edited copies of one member (4 members, 8+ corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:126 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:126-133 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:202-209 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:185-192 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersViewModel.kt:131-138 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×2
  • Edited copy of a member (8 corresponding lines) core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:93 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:93-100 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/RuStoreUpdateProvider.kt:92-99 — 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/home/src/main/java/com/hellguy39/hellnotes/feature/home/HomeState.kt:46 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/HomeState.kt:46-54 | feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailState.kt:43-50 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×2
  • Duplicated block (19 lines × 2) core/network/src/main/java/com/hellguy39/hellnotes/core/network/mapper/ReleaseMapper.kt:68 — core/network/src/main/java/com/hellguy39/hellnotes/core/network/mapper/ReleaseMapper.kt:68-86 | core/network/src/main/java/com/hellguy39/hellnotes/core/network/mapper/ReleaseMapper.kt:90-108 — 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/network/src/main/java/com/hellguy39/hellnotes/core/network/mapper/ReleaseMapper.kt:68` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:54 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:54-72 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:116-134 — 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/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×2
  • Duplicated block (18 lines × 2) feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPassword.kt:129 — feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPassword.kt:129-146 | feature/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockScreenPin.kt:123-140 — 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 (18 lines × 2) feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:96 — feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:96-113 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt:95-112 — before extracting anything, compare `feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt` and `feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:96` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×2
  • Duplicated block (17 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:57 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:57-73 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:92-108 — 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/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:57` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:133 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:133-149 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNSwithItem.kt:68-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.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×2
  • Duplicated block (15–16 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:57 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:57-72 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:60-74 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:57` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15–16 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:118 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:118-133 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:114-128 — 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/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:118` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×2
  • Duplicated block (9 lines × 2) feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:70 — feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:70-78 | feature/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:98-106 — 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/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupViewModel.kt:70` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/HomeState.kt:114 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/HomeState.kt:114-122 | feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailState.kt:63-71 — 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/home/src/main/java/com/hellguy39/hellnotes/feature/home/HomeState.kt:114` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: HellNotes:core:model — HellNotes:core:model: abstractness 0.12, instability 0.00, distance 0.88 — zone of pain — concrete and depended on by 30 project(s), so it's rigid to change.
  • Off the main sequence: HellNotes:core:ui — HellNotes:core:ui: abstractness 0.04, instability 0.12, distance 0.84 — zone of pain — concrete and depended on by 22 project(s), so it's rigid to change.
D2 · Cognitive Complexity · CustomDialogKt.CustomDialog (cognitive 19) · ×1
  • CustomDialogKt.CustomDialog (cognitive 19) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.kt:41 — CustomDialogKt.CustomDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · NoteChipGroupKt.NoteChipGroup (cognitive 16) · ×1
  • NoteChipGroupKt.NoteChipGroup (cognitive 16) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/NoteChipGroup.kt:38 — NoteChipGroupKt.NoteChipGroup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LockSetupPasswordScreenKt.LockSetupPasswordScreen (cognitive 16) · ×1
  • LockSetupPasswordScreenKt.LockSetupPasswordScreen (cognitive 16) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:42 — LockSetupPasswordScreenKt.LockSetupPasswordScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LockSetupPinScreenKt.LockSetupPinScreen (cognitive 16) · ×1
  • LockSetupPinScreenKt.LockSetupPinScreen (cognitive 16) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:42 — LockSetupPinScreenKt.LockSetupPinScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D4 · Code Duplication · Near-duplicate member pair (96 shared lines) · ×1
  • Near-duplicate member pair (96 shared lines) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:45 — feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:45-214 | feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:45-214 — These two members are variants of one another: 96 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (72 shared lines) · ×1
  • Near-duplicate member pair (72 shared lines) feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:40 — feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:40-118 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt:40-117 — These two members are variants of one another: 72 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt:28 — feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt:28-51 | feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/navigation/PrivacyPolicyNavigation.kt:28-51 | feature/reset/src/main/java/com/hellguy39/hellnotes/feature/reset/navigation/ResetNavigation.kt:28-51 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/navigation/TermsAndConditionsNavigation.kt:28-51 | feature/update/src/main/java/com/hellguy39/hellnotes/feature/update/navigation/UpdateNavigation.kt:28-51 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (4 members, 50+ identical tokens) feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:28 — feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:28-51 | feature/lock-selection/src/main/java/com/hellguy39/hellnotes/feature/lockselection/navigation/LockSelectionNavigation.kt:29-54 | feature/note-style-edit/src/main/java/com/hellguy39/hellnotes/feature/notestyleedit/navigation/NoteStyleEditNavigation.kt:28-50 | feature/note-swipe-edit/src/main/java/com/hellguy39/hellnotes/feature/noteswipeedit/navigation/NoteSwipeEditNavigation.kt:28-50 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Edited copies of one member (3 members, 77+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 77+ corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:41 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:41-126 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt:53-154 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/components/RemindersTopAppBar.kt:46-122 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 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 (43 corresponding lines) · ×1
  • Edited copy of a member (43 corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesRoute.kt:43 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesRoute.kt:43-105 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersRoute.kt:37-79 — 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 copies of one member (3 members, 48+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 48+ corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt:54 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt:54-101 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelSсreen.kt:58-107 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersScreen.kt:58-114 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 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 (44 corresponding lines) · ×1
  • Edited copy of a member (44 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:57 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:57-100 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.kt:111-154 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:48 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:48-97 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/HNCheckboxItem.kt:109-158 — These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×1
  • Edited copy of a member (36 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:49 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:49-84 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:53-101 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 33+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 33+ corresponding lines) feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogViewModel.kt:51 — feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogViewModel.kt:51-83 | feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyViewModel.kt:50-82 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsVIewModel.kt:50-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 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 (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelDropdownMenu.kt:32 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelDropdownMenu.kt:32-56 | feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/components/NoteDetailDropdownMenu.kt:31-55 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×1
  • Edited copy of a member (34 corresponding lines) feature/label-edit/src/main/java/com/hellguy39/hellnotes/feature/labeledit/LabelEditScreen.kt:45 — feature/label-edit/src/main/java/com/hellguy39/hellnotes/feature/labeledit/LabelEditScreen.kt:45-78 | feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailScreen.kt:36-76 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 18+ corresponding lines) feature/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/navigation/AboutAppNavigation.kt:30 — feature/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/navigation/AboutAppNavigation.kt:30-47 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/navigation/HomeNavigation.kt:33-50 | feature/settings/src/main/java/com/hellguy39/hellnotes/feature/settings/navigation/SettingsNavigation.kt:31-49 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×1
  • Edited copy of a member (18 corresponding lines) core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/note/GetAllNoteWrappersFlowUseCase.kt:41 — core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/note/GetAllNoteWrappersFlowUseCase.kt:41-58 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/trash/GetAllNoteWrappersAtTrashFlowUseCase.kt:41-58 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) feature/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/AboutAppScreen.kt:36 — feature/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/AboutAppScreen.kt:36-59 | feature/settings/src/main/java/com/hellguy39/hellnotes/feature/settings/SettingsScreen.kt:34-60 — 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 copies of one member (5 members, 16+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 16+ corresponding lines) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:65 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:65-80 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:118-133 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:98-115 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersViewModel.kt:69-84 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/trash/TrashViewModel.kt:73-88 — These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 9+ corresponding lines) core/data/src/main/java/com/hellguy39/hellnotes/core/data/repository/remote/GithubRepositoryServiceImpl.kt:36 — core/data/src/main/java/com/hellguy39/hellnotes/core/data/repository/remote/GithubRepositoryServiceImpl.kt:36-46 | core/data/src/main/java/com/hellguy39/hellnotes/core/data/repository/remote/GithubRepositoryServiceImpl.kt:48-56 | core/data/src/main/java/com/hellguy39/hellnotes/core/data/repository/remote/GithubRepositoryServiceImpl.kt:58-66 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/BackupDatabaseUseCase.kt:41-51 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/RestoreDatabaseUseCase.kt:39-48 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×1
  • Edited copy of a member (16 corresponding lines) feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.kt:95 — feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.kt:95-110 | feature/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.kt:122-138 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×1
  • Edited copy of a member (19 corresponding lines) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/topappbars/HNLargeTopAppBar.kt:34 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/topappbars/HNLargeTopAppBar.kt:34-58 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/topappbars/HNTopAppBar.kt:73-91 — 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 copies of one member (3 members, 6+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 6+ corresponding lines) core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/label/GetAllArchivedNoteWrappersByLabelId.kt:35 — core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/label/GetAllArchivedNoteWrappersByLabelId.kt:35-41 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/label/GetAllNoteWrappersAtTrashByLabelId.kt:35-40 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/label/GetAllNoteWrappersByLabelId.kt:35-41 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×1
  • Edited copy of a member (9 corresponding lines) core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:41 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/PlayStoreReviewProvider.kt:41-49 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/review/provider/RuStoreReviewProvider.kt:43-51 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×1
  • Edited copy of a member (11 corresponding lines) core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:102 — core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/PlayStoreUpdateProvider.kt:102-112 | core/store-api/src/main/java/com/hellguy39/hellnotes/core/storeapi/update/provider/RuStoreUpdateProvider.kt:101-111 — 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 · Duplicated block (41 lines × 2) · ×1
  • Duplicated block (41 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/NoteItems.kt:54 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/NoteItems.kt:54-94 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/items/NoteItems.kt:106-146 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (34–35 lines × 2) · ×1
  • Duplicated block (34–35 lines × 2) feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:57 — feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:57-91 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt:57-90 — before extracting anything, compare `feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt` and `feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (33 lines × 4) · ×1
  • Duplicated block (33 lines × 4) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:55 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:55-87 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt:69-101 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/components/RemindersTopAppBar.kt:59-91 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/trash/components/TrashTopAppBar.kt:58-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:55` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (43 lines × 2) · ×1
  • Duplicated block (43 lines × 2) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:88 — feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:88-130 | feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:88-130 — before extracting anything, compare `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt` and `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:88` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:85` calls `rememberTopAppBarState`, `pinnedScrollBehavior` and `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:86` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteList.kt:60 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteList.kt:60-90 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteList.kt:105-135 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (30 lines × 3) · ×1
  • Duplicated block (30 lines × 3) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:92 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:92-121 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt:106-135 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/components/RemindersTopAppBar.kt:88-117 — 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/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/components/ArchiveTopAppBar.kt:92` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:137 — feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:137-163 | feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:137-163 — before extracting anything, compare `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt` and `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:165 — feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:165-190 | feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:165-190 — before extracting anything, compare `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt` and `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:165` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×1
  • Duplicated block (22–23 lines × 2) core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:63 — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:63-84 | core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.kt:79-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 `core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:63` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:227 — feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:227-247 | feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:305-325 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.kt:227` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–20 lines × 3) · ×1
  • Duplicated block (17–20 lines × 3) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:149 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:149-165 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:133-152 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersViewModel.kt:100-116 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:167` calls `isLabelUnique` and `feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:154` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16 lines × 5) · ×1
  • Duplicated block (16 lines × 5) feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt:31 — feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt:31-46 | feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/navigation/PrivacyPolicyNavigation.kt:31-46 | feature/reset/src/main/java/com/hellguy39/hellnotes/feature/reset/navigation/ResetNavigation.kt:31-46 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/navigation/TermsAndConditionsNavigation.kt:31-46 | feature/update/src/main/java/com/hellguy39/hellnotes/feature/update/navigation/UpdateNavigation.kt:31-46 — before extracting anything, compare `feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt` and `feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/navigation/PrivacyPolicyNavigation.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 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/navigation/ChangelogNavigation.kt:31` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt:98 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt:98-113 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/components/NoteListTopAppBar.kt:93-108 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (14–15 lines × 4) · ×1
  • Duplicated block (14–15 lines × 4) feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:32 — feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:32-46 | feature/lock-selection/src/main/java/com/hellguy39/hellnotes/feature/lockselection/navigation/LockSelectionNavigation.kt:32-45 | feature/note-style-edit/src/main/java/com/hellguy39/hellnotes/feature/notestyleedit/navigation/NoteStyleEditNavigation.kt:31-45 | feature/note-swipe-edit/src/main/java/com/hellguy39/hellnotes/feature/noteswipeedit/navigation/NoteSwipeEditNavigation.kt:31-45 — before extracting anything, compare `feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt` and `feature/note-style-edit/src/main/java/com/hellguy39/hellnotes/feature/notestyleedit/navigation/NoteStyleEditNavigation.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:32` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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, `feature/language-selection/src/main/java/com/hellguy39/hellnotes/feature/languageselection/navigation/LanguageSelectionNavigation.kt:31` calls `listOf` and `feature/lock-selection/src/main/java/com/hellguy39/hellnotes/feature/lockselection/navigation/LockSelectionNavigation.kt:31` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:108 — feature/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:108-122 | feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt:104-118 | feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt:103-117 — before extracting anything, compare `feature/privacy-policy/src/main/java/com/hellguy39/hellnotes/feature/privacypolicy/PrivacyPolicyScreen.kt` and `feature/terms-and-conditions/src/main/java/com/hellguy39/hellnotes/feature/termsandconditions/TermsAndConditionsScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/changelog/src/main/java/com/hellguy39/hellnotes/feature/changelog/ChangelogScreen.kt:108` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt:67 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt:67-79 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersScreen.kt:70-82 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/trash/TrashScreen.kt:64-76 — 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/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveScreen.kt:67` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×1
  • Duplicated block (7 lines × 2) core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/BackupDatabaseUseCase.kt:45 — core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/BackupDatabaseUseCase.kt:45-51 | core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/RestoreDatabaseUseCase.kt:42-48 — before extracting anything, compare `core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/BackupDatabaseUseCase.kt` and `core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/RestoreDatabaseUseCase.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/usecase/backup/BackupDatabaseUseCase.kt:45` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) core/database/src/main/java/com/hellguy39/hellnotes/core/database/mapper/NoteMapper.kt:21 — core/database/src/main/java/com/hellguy39/hellnotes/core/database/mapper/NoteMapper.kt:21-33 | core/model/src/main/java/com/hellguy39/hellnotes/core/model/repository/local/database/Note.kt:54-66 — before extracting anything, compare `core/database/src/main/java/com/hellguy39/hellnotes/core/database/mapper/NoteMapper.kt` and `core/model/src/main/java/com/hellguy39/hellnotes/core/model/repository/local/database/Note.kt` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 5) · ×1
  • Duplicated block (12 lines × 5) feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:82 — feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/archive/ArchiveViewModel.kt:82-93 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.kt:135-146 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.kt:117-130 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/reminders/RemindersViewModel.kt:86-97 | feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/trash/TrashViewModel.kt:90-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×1
  • Duplicated block (8 lines × 2) feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:241 — feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt:241-248 | feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt:241-248 — before extracting anything, compare `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.kt` and `feature/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
D5 · Coupling · Unstable project HellNotes · ×1
  • Unstable project HellNotes:core:data — HellNotes:core:data has instability 0.86 with 1 dependents.
P1 · CI/CD gates · No CI pipeline · ×1
  • No CI pipeline — No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
Minor — 164 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×154
  • Orphaned file feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailRoute.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/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/components/NoteDetailContent.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/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditScreen.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/note-detail/src/main/java/com/hellguy39/hellnotes/feature/notedetail/NoteDetailViewModel.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/java/com/hellguy39/hellnotes/core/ui/resources/AppStrings.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/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/components/DrawerSheetContent.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/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelRoute.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/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPasswordScreen.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/lock-setup/src/main/java/com/hellguy39/hellnotes/feature/locksetup/LockSetupPinScreen.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/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/LabelViewModel.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/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/NotesViewModel.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/search/src/main/java/com/hellguy39/hellnotes/feature/search/SearchScreen.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/datastore/src/main/java/com/hellguy39/hellnotes/core/datastore/HellNotesPreferencesDataSource.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/java/com/hellguy39/hellnotes/core/ui/components/CustomDialog.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/java/com/hellguy39/hellnotes/core/ui/components/cards/NoteCard.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/about-app/src/main/java/com/hellguy39/hellnotes/feature/aboutapp/components/AboutAppScreenContent.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/java/com/hellguy39/hellnotes/core/ui/navigations/NavigateTo.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/note-swipe-edit/src/main/java/com/hellguy39/hellnotes/feature/noteswipeedit/NoteSwipeEditScreen.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/java/com/hellguy39/hellnotes/core/ui/components/items/HNListItem.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/reminder-edit/src/main/java/com/hellguy39/hellnotes/feature/reminderedit/ReminderEditViewModel.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/on-boarding/src/main/java/com/hellguy39/hellnotes/feature/onboarding/OnBoardingScreen.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/backup/src/main/java/com/hellguy39/hellnotes/feature/backup/BackupScreen.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/home/src/main/java/com/hellguy39/hellnotes/feature/home/notes/components/NoteListTopAppBar.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/note-style-edit/src/main/java/com/hellguy39/hellnotes/feature/notestyleedit/NoteStyleEditScreen.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/lock/src/main/java/com/hellguy39/hellnotes/feature/lock/LockViewModel.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.
  • + 129 more in this group — see findings.md.
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no build, run or usage example README.md:1 — the repository holds project manifests and neither `README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found build-logic/convention/build.gradle.kts:41 — 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 41).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion core/ui/build.gradle.kts:1 — `core/ui` (5441 LoC, 146 module-visible types across 24 directories) overshoots its size bounds. 1 of 33 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 9.4/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 154 of 154 significant files have no living knowledge — the codebase as a whole is dormant, not 154 separate risks. Counted over 154 of the 413 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change.
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation · No architecture diagram/doc · ×1
  • No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation app/build.gradle.kts:78 — `app/build.gradle.kts` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
X10 · Duplicated predicate · Duplicated predicate · ×1
  • Duplicated predicate core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt:61 — `partition.name !is UiText.Empty && !volume.isSinglePartition` appears character-identically in 2 files — core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteColumnList.kt, core/ui/src/main/java/com/hellguy39/hellnotes/core/ui/components/list/NoteGridList.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.
Minor — 1 finding(s)
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: HellNotes:core:common — HellNotes:core:common: abstractness 0.22, instability 0.04, distance 0.74 — 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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-18dd1df1483e4007a96dac6e07984769/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-18dd1df1483e4007a96dac6e07984769/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .0artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).0—
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D36 · Supply-chain Provenance & Signingprovenance—provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).0—

Run 01a1e570-3993-79d9-a005-56a544dc5558 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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