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

cardano-foundation/catalyst-voices

Measured 17 November 2026, 02:13 UTC, at code version b976d8a

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 51.6out of 100 At risk

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 255,066 lines of product code in 42 projects, tests not counted · Estimated rebuild effort: about 2.0 person-years · Weakest lens: Code Health, 45.7

Findings by how serious they are

148 critical 1073 serious 732 minor

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

This survey was produced by

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

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

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 ▸

89of 89 dimensions measured by tools.
1931of 1953 findings point to an exact file and line, so you can open each one in the code. The other 22 concern the repository as a whole, such as missing documentation.
89dimensions across 9 lenses, read from 255,066 lines of product code in 42 projects.
Chapters

Executive summary

cardano-foundation/catalyst-voices is rated At risk because critical security findings are open, most of them in the build pipeline. It scores 51.6 out of 100, which the At risk rating leaves unchanged.

Code Health, at 45.7, is the weakest lens and counts most in the score. The best first step for the work it takes is fixing the four tests that are switched off, worth about 2.2 points. Removing the unused code would lift Code Health itself, worth about 4.0 points. Raising Code Health to 70 would lift the score to about 56.3.

Seventy-three pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Thirty-six known security holes in the packages the code depends on can be used by attackers, and twelve settings leave the servers or containers unsafe. Pinning each tool to an exact version, updating the vulnerable packages and correcting the unsafe settings would close these risks. Limiting each secret to its own step would fix the nine secrets exposed to more of the pipeline than needed, and setting a waiting period for automatic updates would deal with the automatic dependency update that takes a new release at once. The three buttons or links with no name need a name, even when they only show an icon.

The product code is 255,066 lines, about €280,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.
Code Health 45.7 · counts for 45%Maturity 51.8 · counts for 25%Production Readiness 52.1 · counts for 14%Performance 60.0 · counts for 8%Security and Compliance 71.3 · counts for 4%Accessibility 71.5 · counts for 2%Architecture 75.2 · counts for 1%Event-Driven 80.0 · counts for 1%Domain Modelling 100.0 · counts for 0%

If Code Health rose from 45.7 to 70, the lowest score rated Strong, the score would rise from 51.6 to about 56.3.

Code composition: what the lines of code are
Product code 85%Tests 15%
Rebuild cost: about €280,000 · Estimate
Cost to rebuild€95,000 to €480,000, for 1,576 to 5,001 hours of work, about 2.0 person-years for 1 to 4 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 52. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 255,066 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 4 Skipped test finding(s) in Test Quality — start with wallets.spec.ts (3), onboarding.spec.ts.
Raises the score by about 2.2 points · Low effort · Test Quality
2
Resolve the 1 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED.
Raises the score by about 2.1 points · Low effort · REDACTED Scanning
3
Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
Raises the score by about 4.0 points · Medium effort · Dead Code

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 €280,000 to build again, about 2.0 person-years of work. Its weakest lens is Code Health, at 45.7 (Weak). Code Health is about how easy the code is to read and change safely, and code that is hard to read is slow and risky to change, so every future change costs more than it should. Because the weakest lens counts most in the score, work on Code Health also moves the score most.
Based on: the rebuild estimate · the Code Health grade · how much each lens counts
What to do: Start with the Code Health actions in Top priorities.
If you do one thing first · First action
Resolve the 4 Skipped test finding(s) in Test Quality. Of all the actions in this report, it raises the score most for the work it takes: about 2.2 points for low effort, because it clears the 4 Test 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 api-tests api-tests build_tool (catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool) build_tool) catalyst_cardano catalyst_cardano catalyst_cardano_platform_interface catalyst_cardano_platform_interface catalyst_cardano->catalyst_cardano_platform_interface catalyst_cardano_serialization catalyst_cardano_serialization catalyst_cardano->catalyst_cardano_serialization catalyst_cardano_web catalyst_cardano_web catalyst_cardano->catalyst_cardano_web catalyst_cardano_platform_interface->catalyst_cardano_serialization catalyst_compression (pub) catalyst_compression (pub) catalyst_cardano_serialization->catalyst_compression (pub) catalyst_key_derivation (pub) catalyst_key_derivation (pub) catalyst_cardano_serialization->catalyst_key_derivation (pub) catalyst_cardano_web->catalyst_cardano_platform_interface catalyst_cardano_web->catalyst_cardano_serialization catalyst_cose catalyst_cose catalyst_voices catalyst_voices catalyst_voices->catalyst_cardano catalyst_voices->catalyst_cardano_serialization catalyst_voices->catalyst_cardano_web catalyst_voices->catalyst_compression (pub) catalyst_voices->catalyst_key_derivation (pub) catalyst_voices_assets catalyst_voices_assets catalyst_voices->catalyst_voices_assets catalyst_voices_blocs catalyst_voices_blocs catalyst_voices->catalyst_voices_blocs catalyst_voices_brands catalyst_voices_brands catalyst_voices->catalyst_voices_brands catalyst_voices_localization catalyst_voices_localization catalyst_voices->catalyst_voices_localization catalyst_voices_models catalyst_voices_models catalyst_voices->catalyst_voices_models catalyst_voices_repositories catalyst_voices_repositories catalyst_voices->catalyst_voices_repositories catalyst_voices_services catalyst_voices_services catalyst_voices->catalyst_voices_services catalyst_voices_shared catalyst_voices_shared catalyst_voices->catalyst_voices_shared catalyst_voices_view_models catalyst_voices_view_models catalyst_voices->catalyst_voices_view_models catalyst_voices_blocs->catalyst_cardano catalyst_voices_blocs->catalyst_cardano_serialization catalyst_voices_blocs->catalyst_cardano_web catalyst_voices_blocs->catalyst_key_derivation (pub) catalyst_voices_blocs->catalyst_voices_brands catalyst_voices_blocs->catalyst_voices_models catalyst_voices_blocs->catalyst_voices_repositories catalyst_voices_blocs->catalyst_voices_services catalyst_voices_blocs->catalyst_voices_shared catalyst_voices_blocs->catalyst_voices_view_models catalyst_voices_brands->catalyst_voices_assets catalyst_voices_dev catalyst_voices_dev catalyst_voices_dev->catalyst_voices_models catalyst_voices_dev->catalyst_voices_repositories catalyst_voices_dev->catalyst_voices_services catalyst_voices_dev->catalyst_voices_shared catalyst_voices_models->catalyst_cardano catalyst_voices_models->catalyst_cardano_serialization catalyst_voices_models->catalyst_cardano_web catalyst_voices_models->catalyst_voices_shared catalyst_voices_repositories->catalyst_cardano_serialization catalyst_voices_repositories->catalyst_compression (pub) catalyst_voices_repositories->catalyst_cose catalyst_voices_repositories->catalyst_key_derivation (pub) catalyst_voices_repositories->catalyst_voices_assets catalyst_voices_repositories->catalyst_voices_models catalyst_voices_repositories->catalyst_voices_shared catalyst_voices_services->catalyst_cardano catalyst_voices_services->catalyst_cardano_serialization catalyst_voices_services->catalyst_cardano_web catalyst_voices_services->catalyst_key_derivation (pub) catalyst_voices_services->catalyst_voices_models catalyst_voices_services->catalyst_voices_repositories catalyst_voices_services->catalyst_voices_shared catalyst_voices_shared->catalyst_cardano_serialization catalyst_voices_shared->catalyst_key_derivation (pub) catalyst_voices_view_models->catalyst_cardano catalyst_voices_view_models->catalyst_cardano_serialization catalyst_voices_view_models->catalyst_cardano_web catalyst_voices_view_models->catalyst_voices_assets catalyst_voices_view_models->catalyst_voices_brands catalyst_voices_view_models->catalyst_voices_localization catalyst_voices_view_models->catalyst_voices_models catalyst_voices_view_models->catalyst_voices_shared __more__ +17 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.

282 modules, with 483 dependencies between them. 6 loops run through 18 of the modules, marked above the diagonal.

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

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 cat_gateway.db.event.signed_docs.doc_ref2 cat_gateway.db.index.session.cache_manager3 cat_gateway.db.types.stake_address4 cat_gateway.db.types.transaction_id5 cat_gateway.db.types.txn_output_offset6 cat_gateway.service.common.objects.cardano.network7 repository.src8 cat_gateway.db.event.signed_docs.query_filter9 cat_gateway.db.types.catalyst_id10 cat_gateway.service.common.types.cardano.slot_no11 cat_gateway.service.common.types.cardano.txn_index12 cat_gateway.db.types.transaction_index13 cat_gateway.service.common.objects.cardano.slot_info14 cat_gateway.service.common.types.cardano.catalyst_id15 cat_gateway.db.types.slot16 cat_gateway.service.common.auth.rbac.token17 cat_gateway.settings.admin18 cat_gateway.db.index.block.cip36.insert_cip3619 cat_gateway.db.index.block.txo.insert_txo20 cat_gateway.db.index.block.txo.insert_txo_asset21 cat_gateway.db.index.block.txo.insert_unstaked_txo22 cat_gateway.db.index.block.txo.insert_unstaked_txo_asset23 cat_gateway.db.index.session24 cat_gateway.db.index.block.certs25 cat_gateway.db.index.block.rbac50926 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_public_key27 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_stake_address28 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_txn_id29 cat_gateway.db.index.block.rbac509.insert_rbac50930 cat_gateway.db.index.block.rbac509.insert_rbac509_invalid31 cat_gateway.db.index.block.txi32 cat_gateway.db.index.block.txo33 cat_gateway.db.index.queries.purge.catalyst_id_for_stake_address34 cat_gateway.db.index.queries.purge.txo_ada35 cat_gateway.db.index.queries.purge.txo_assets36 cat_gateway.db.index.queries.rbac.get_catalyst_id_from_public_key37 cat_gateway.db.index.queries.staked_ada.get_txo_by_stake_address38 cat_gateway.db.index.queries.staked_ada.update_txo_spent39 cat_gateway.db.index.block.cip3640 cat_gateway.db.index.queries.rbac.get_rbac_invalid_registrations
1 cat_gateway.db.event.signed_docs.doc_ref
2 cat_gateway.db.index.session.cache_manager
3 cat_gateway.db.types.stake_address
4 cat_gateway.db.types.transaction_id
5 cat_gateway.db.types.txn_output_offset
6 cat_gateway.service.common.objects.cardano.network
7 repository.src
8 cat_gateway.db.event.signed_docs.query_filter1
9 cat_gateway.db.types.catalyst_id1
10 cat_gateway.service.common.types.cardano.slot_no1
11 cat_gateway.service.common.types.cardano.txn_index1
12 cat_gateway.db.types.transaction_index1
13 cat_gateway.service.common.objects.cardano.slot_info11
14 cat_gateway.service.common.types.cardano.catalyst_id1
15 cat_gateway.db.types.slot11
16 cat_gateway.service.common.auth.rbac.token11
17 cat_gateway.settings.admin2
18 cat_gateway.db.index.block.cip36.insert_cip3611111
19 cat_gateway.db.index.block.txo.insert_txo11111111
20 cat_gateway.db.index.block.txo.insert_txo_asset1111111
21 cat_gateway.db.index.block.txo.insert_unstaked_txo1111111
22 cat_gateway.db.index.block.txo.insert_unstaked_txo_asset1111111
23 cat_gateway.db.index.session112
24 cat_gateway.db.index.block.certs1212121
25 cat_gateway.db.index.block.rbac509121111
26 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_public_key111111
27 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_stake_address111111111
28 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_txn_id1111111
29 cat_gateway.db.index.block.rbac509.insert_rbac509111111111
30 cat_gateway.db.index.block.rbac509.insert_rbac509_invalid111111111
31 cat_gateway.db.index.block.txi112111
32 cat_gateway.db.index.block.txo111111
33 cat_gateway.db.index.queries.purge.catalyst_id_for_stake_address111112
34 cat_gateway.db.index.queries.purge.txo_ada1111112
35 cat_gateway.db.index.queries.purge.txo_assets1111112
36 cat_gateway.db.index.queries.rbac.get_catalyst_id_from_public_key11
37 cat_gateway.db.index.queries.staked_ada.get_txo_by_stake_address122231
38 cat_gateway.db.index.queries.staked_ada.update_txo_spent111111
39 cat_gateway.db.index.block.cip36111111
40 cat_gateway.db.index.queries.rbac.get_rbac_invalid_registrations111111
Uses a module listed above itPart of a loopThe module itself
1 cat_gateway.db.event.signed_docs.doc_ref2 cat_gateway.db.index.session.cache_manager3 cat_gateway.db.types.stake_address4 cat_gateway.db.types.transaction_id5 cat_gateway.db.types.txn_output_offset6 cat_gateway.service.common.objects.cardano.network7 repository.src8 cat_gateway.db.event.signed_docs.query_filter9 cat_gateway.db.types.catalyst_id10 cat_gateway.service.common.types.cardano.slot_no11 cat_gateway.service.common.types.cardano.txn_index12 cat_gateway.db.types.transaction_index13 cat_gateway.service.common.objects.cardano.slot_info14 cat_gateway.service.common.types.cardano.catalyst_id15 cat_gateway.db.types.slot16 cat_gateway.service.common.auth.rbac.token17 cat_gateway.settings.admin18 cat_gateway.db.index.block.cip36.insert_cip3619 cat_gateway.db.index.block.txo.insert_txo20 cat_gateway.db.index.block.txo.insert_txo_asset21 cat_gateway.db.index.block.txo.insert_unstaked_txo22 cat_gateway.db.index.block.txo.insert_unstaked_txo_asset23 cat_gateway.db.index.session24 cat_gateway.db.index.block.certs25 cat_gateway.db.index.block.rbac50926 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_public_key27 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_stake_address28 cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_txn_id29 cat_gateway.db.index.block.rbac509.insert_rbac50930 cat_gateway.db.index.block.rbac509.insert_rbac509_invalid31 cat_gateway.db.index.block.txi32 cat_gateway.db.index.block.txo33 cat_gateway.db.index.queries.purge.catalyst_id_for_stake_address34 cat_gateway.db.index.queries.purge.txo_ada35 cat_gateway.db.index.queries.purge.txo_assets36 cat_gateway.db.index.queries.rbac.get_catalyst_id_from_public_key37 cat_gateway.db.index.queries.staked_ada.get_txo_by_stake_address38 cat_gateway.db.index.queries.staked_ada.update_txo_spent39 cat_gateway.db.index.block.cip3640 cat_gateway.db.index.queries.rbac.get_rbac_invalid_registrationscat_gateway.db.event.signed_docs.doc_ref1cat_gateway.db.index.session.cache_manager2cat_gateway.db.types.stake_address3cat_gateway.db.types.transaction_id4cat_gateway.db.types.txn_output_offset5cat_gateway.service.common.objects.cardano.network6repository.src7cat_gateway.db.event.signed_docs.query_filter8cat_gateway.db.types.catalyst_id9cat_gateway.service.common.types.cardano.slot_no10cat_gateway.service.common.types.cardano.txn_index11cat_gateway.db.types.transaction_index12cat_gateway.service.common.objects.cardano.slot_info13cat_gateway.service.common.types.cardano.catalyst_id14cat_gateway.db.types.slot15cat_gateway.service.common.auth.rbac.token16cat_gateway.settings.admin17cat_gateway.db.index.block.cip36.insert_cip3618cat_gateway.db.index.block.txo.insert_txo19cat_gateway.db.index.block.txo.insert_txo_asset20cat_gateway.db.index.block.txo.insert_unstaked_txo21cat_gateway.db.index.block.txo.insert_unstaked_txo_asset22cat_gateway.db.index.session23cat_gateway.db.index.block.certs24cat_gateway.db.index.block.rbac50925cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_public_key26cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_stake_address27cat_gateway.db.index.block.rbac509.insert_catalyst_id_for_txn_id28cat_gateway.db.index.block.rbac509.insert_rbac50929cat_gateway.db.index.block.rbac509.insert_rbac509_invalid30cat_gateway.db.index.block.txi31cat_gateway.db.index.block.txo32cat_gateway.db.index.queries.purge.catalyst_id_for_stake_address33cat_gateway.db.index.queries.purge.txo_ada34cat_gateway.db.index.queries.purge.txo_assets35cat_gateway.db.index.queries.rbac.get_catalyst_id_from_public_key36cat_gateway.db.index.queries.staked_ada.get_txo_by_stake_address37cat_gateway.db.index.queries.staked_ada.update_txo_spent38cat_gateway.db.index.block.cip3639cat_gateway.db.index.queries.rbac.get_rbac_invalid_registrations4011111111111121111111111111111111111111111111111112121212112111111111111111111111111111111111111111111111121111111111111121111112111111211122231111111111111111111+242 more modules (most-connected shown)

At a glance — Code Health · 45.7 · Weak · gated by R7 ·

At a glance — Architecture · 75.2 · Strong ·

At a glance — Maturity · 51.8 · Adequate · gated by D34, M4 ·

At a glance — Readiness · 52.1 · Adequate · gated by D10, R4 ·

At a glance — Security · 71.3 · Adequate · gated by D29, D31, D36 ·

At a glance — Domain Modelling · 100.0 · Exemplary ·

At a glance — Event-Driven · 80.0 · Strong ·

At a glance — Accessibility · 71.5 · Strong ·

At a glance — Performance · 60.0 · Adequate ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection88High / Critical
A02:2025 — Security Misconfiguration84High / Critical
A03:2025 — Software Supply Chain Failures57High / Critical
A07:2025 — Authentication Failures5High / Critical

Roadmap

Top priorities: Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value; Resolve the 570 Orphaned file finding(s) in Knowledge Freshness — start with mod.rs (2), proposals_page.dart (2), exceptions.dart (2); Resolve the 4 Skipped test finding(s) in Test Quality — start with wallets.spec.ts (3), onboarding.spec.ts.

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

Do thisHelpsEffortDimension
Resolve the 4 Skipped test finding(s) in Test Quality — start with wallets.spec.ts (3), onboarding.spec.ts.+2.2 ptsLowTest Quality
Resolve the 1 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED.+2.1 ptsLowREDACTED Scanning
Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.+4.0 ptsMediumDead Code
Resolve the 1 No assertions finding(s) in Test Quality — start with wallets.spec.ts.+1.7 ptsLowTest Quality
Resolve the 6 redundant comment finding(s) in Comment Value — start with lace-actions.ts (2), laceUtils.ts (2), yoroi-actions.ts.+1.3 ptsLowComment Value
Reconcile the README with reality: utilities/wallet-tester/README.md names Node.js 18, but the repository declares pinned 20, pinned 24; .config/dictionaries/cspell/cs_CZ/README.md links to `Czech.txt`, but `.config/dictionaries/cspell/cs_CZ/Czech.txt` does not exist; .config/dictionaries/cspell/es_ES/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/es_ES/src/additional_words.txt` does not exist; .config/dictionaries/cspell/ru_RU/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/ru_RU/src/additional_words.txt` does not exist; .config/dictionaries/cspell/sk_SK/README.md links to `./Slovak.txt`, but `.config/dictionaries/cspell/sk_SK/Slovak.txt` does not exist.+2.2 ptsMediumDocumentation accuracy
Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.+2.0 ptsMediumCode Duplication
Resolve the 570 Orphaned file finding(s) in Knowledge Freshness — start with mod.rs (2), proposals_page.dart (2), exceptions.dart (2).+2.3 ptsHighKnowledge Freshness

File quality

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

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED0.3SlopDependency Vulnerabilities: High CVE: REDACTED
REDACTED2.0SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.0SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.0SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopDependency Vulnerabilities: Critical vulnerability: REDACTED
REDACTED2.7SlopIaC & Container Security: High IaC: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedIaC & Container Security: High IaC: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart5.5MixedCyclomatic Complexity: ProposalsCubit.changeFilters (cyclomatic 18)
catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart5.6MixedGod Classes: ClassTooLong: ProposalCubit

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

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

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

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

Could not be resolved — 11

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

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

What we checked — 89 dimensions across the health lenses
D1D2D3D4D5D6D7D10D12D13D14D15D17D19D20D21D24D26D28D29D30D31D34D35D36D37D40D41D43D44AC1AC2AC3AC5AC6AX1AX10AX3AX4AX6AX8AX9DM2DM5DM6ED4GD1IC1M1M2M3M4P1P10P2P3P4P6P7P8PF3R1R10R11R2R3R4R5R6R7R8R9S1X1X12X14X16X18X2X20X21X23X25X27X28X3X30X4X5

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, 1931 of 1953 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 · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3 · 3.2.533✓ deterministic

Every finding is locatable in findings.md. Run 01a1e747-d4a1-7c21-a470-369f01ca3e93.

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: the JavaScript/TypeScript half could not be measured — the JavaScript/TypeScript suite(s) run through a browser-driven runner the coverage collector does not drive — catalyst_voices/apps/voices/e2e_tests/ (@playwright/test), catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/ (@playwright/test) — a gap in the analyzer, not something this repository is missing. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo.
  • D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 12 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 252 test source file(s) (.dart, .py, .rs) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • 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 (.dart, .py, .ts, .rs) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), but the licence verdict published here was taken over its gem dependencies. Nothing was read about its Python dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Cargo manifest, but the licence verdict published here was taken over its gem dependencies. Nothing was read about its Cargo dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Dart pubspec.yaml, but the licence verdict published here was taken over its gem dependencies. Nothing was read about its Dart dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. All 573 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 573 of the 1836 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.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D24 Comment Value — 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 source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • D27 Navigability — 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D32 Data Compliance (PII/GDPR) — not measured this run — 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. `catalyst_voices/apps/voices/web/drift_worker.v1.js` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. User interface: 26 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. Boot: crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9042: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:9042/ Call log: - navigating to "http://127.0.0.1:9042/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9043: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:9043/ Call log: - navigating to "http://127.0.0.1:9043/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9044: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:9044/ Call log: - navigating to "http://127.0.0.1:9044/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9045: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:9045/ Call log: - navigating to "http://127.0.0.1:9045/", waiting until "load" ran the repo's playwright suite against the booted app but captured no surfaces (suite failed to install/run, or visited no pages) — see runtime diagnostics.
  • C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — 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 retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
  • C5 Data-Subject Rights — not measured this run — 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 data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • R10 Code Duplication — 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. 59 further occurrence(s) are not listed individually; the score already reflects all 99.
  • R2 Cyclomatic Complexity — 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. 47 further occurrence(s) are not listed individually; the score already reflects all 87.

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
  • D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity6.7 / 10Adequate✓ 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 6.7 / 10 · rule-coverage 100% · ceiling Prevented

58 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was T at 53. A further 12 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 qa at 28 — they are counted neither in the figure above nor in this dimension's score. 5 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: catalyst_voices/apps/voices/lib/pages/registration/registration_info_panel.dart (_RegistrationPicture.build at 20), catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/enums/document_property_format.dart (DocumentPropertyFormat.fromString at 19), catalyst_voices/apps/voices/lib/widgets/document_builder/document_value_property_builder.dart (DocumentValuePropertyBuilder.build at 18), catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart (LocalCatGateway._buildDoc at 18), catalyst-gateway/bin/src/db/index/block/certs.rs (CertInsertQuery::index_conway_cert at 17). 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.

T (cyclomatic 53)catalyst_voices/apps/voices/web/drift_worker.v1.js:11615
iz (cyclomatic 51)catalyst_voices/apps/voices/web/drift_worker.v1.js:9918
a8 (cyclomatic 50)catalyst_voices/apps/voices/web/drift_worker.v1.js:1511
bm (cyclomatic 50)catalyst_voices/apps/voices/web/drift_worker.v1.js:2692
RawTransaction.validate (cyclomatic 44)catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart:269

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

What to do

  1. Bring the 9 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with T (cyclomatic 53), iz (cyclomatic 51), a8 (cyclomatic 50). — 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 9 together lifts Cyclomatic Complexity from 6.7 to about 7.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.

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

D2 · Cognitive Complexity5.8 / 10Adequate✓ 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 5.8 / 10 · rule-coverage 100% · ceiling Prevented

103 method(s) exceeded the cognitive complexity threshold of 15; the worst was bm at 122.

cat_gateway::cardano::sync_subchain (cognitive 21) · ×6catalyst-gateway/bin/src/cardano/mod.rs:242
iV (cognitive 17) · ×2catalyst_voices/apps/voices/web/drift_worker.v1.js:1036
bm (cognitive 122)catalyst_voices/apps/voices/web/drift_worker.v1.js:2692
RawTransaction.validate (cognitive 98)catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart:269
ks (cognitive 78)catalyst_voices/apps/voices/web/drift_worker.v1.js:7733

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

What to do

  1. Bring the 6 bodies over 60 down to 60 or less in Cognitive Complexity — start with bm (cognitive 122), RawTransaction.validate (cognitive 98), ks (cognitive 78). — 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 6 together lifts Cognitive Complexity from 5.8 to about 6.5/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

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

D3 · God Classes9.5 / 10Stronggated by 41 serious findings✓ Tool-verified

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

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

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

41 god class(es) detected.

FunctionTooLong: drift_worker.v1.copyProperties · ×9catalyst_voices/apps/voices/web/drift_worker.v1.js:1
FileTooLong: web/drift_worker.v1.js · ×9catalyst_voices/apps/voices/web/drift_worker.v1.js
TooManyMethods: ProposalBuilderBloc · ×9catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:21
MethodTooLong: DocumentStringSchemaMapper.toModel · ×8catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:7
ClassTooLong: ProposalBuilderBloc · ×6catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:21

What to do

  1. Resolve the 9 FunctionTooLong finding(s) in God Classes — start with drift_worker.v1.js (2), TxBuilder.tsx, catalyst_compression.js. — One of this dimension's main actionable groups (9 warning-level).
  2. Resolve the 9 FileTooLong finding(s) in God Classes — start with drift_worker.v1.js, proposal_builder_bloc.dart, proposals_v2_dao.dart. — One of this dimension's main actionable groups (9 warning-level).
  3. Resolve the 9 TooManyMethods finding(s) in God Classes — start with proposal_builder_bloc.dart, proposals_v2_dao.dart, document_repository.dart. — One of this dimension's main actionable groups (9 warning-level).

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

D4 · Code Duplication8.1 / 10Strong✓ 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 8.1 / 10 · rule-coverage 100% · ceiling Verified

156 duplicated block group(s) detected. 4.7 % of the production lines (11,881 of 255,066) are in a reported copy. A further 258 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 10 of the 414 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.

Edited copy of a member (14 corresponding lines) · ×21catalyst_voices/packages/internal/catalyst_voices_localization/lib/src/manage_l10n.dart:84
Edited copy of a member (9 corresponding lines) · ×18catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/user/keychain/vault_keychain_provider.dart:41
Duplicated block (9 lines × 2) · ×15catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34
Edited copy of a member (8 corresponding lines) · ×14catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:55
Duplicated block (12 lines × 2) · ×14catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:127

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

What to do

  1. Resolve the 21 Edited copy of a member (14 corresponding lines) finding(s) in Code Duplication — start with documents_v2_dao.dart (2), from_3_to_4.dart (2), manage_l10n.dart. — One of this dimension's main actionable groups (21 warning-level).
  2. Resolve the 18 Edited copy of a member (9 corresponding lines) finding(s) in Code Duplication — start with error_campaign_phase_aware.dart (2), vault_keychain_provider.dart, dev_tools_bloc.dart. — One of this dimension's main actionable groups (18 warning-level).
  3. Resolve the 15 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with forget_proposal_dialog.dart (2), collaborator_display_consent_card.dart, proposal_collaborator_dialog.dart. — One of this dimension's main actionable groups (15 warning-level).

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

D5 · Coupling6.3 / 10Adequate✓ 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 6.3 / 10 · rule-coverage 100% · ceiling Prevented

37 production modules (Gradle+Cargo+npm+Python+pub), 2 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; 6 module(s) off the main sequence, with abstractness counted on 27 of the 37 (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).

Circular dependency · ×2
Off the main sequence: catalyst_voices_assets · ×6
Unstable project catalyst_voices_blocs

What to do

  1. Resolve the 6 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 2 Circular dependency finding(s) in Coupling. — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 1 Unstable project catalyst_voices_blocs finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).

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

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

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

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

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

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

25 of 742 classes have LCOM4 above 3.

Low cohesion: VotingBallotBloc (LCOM4 11) · ×25catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting_ballot/voting_ballot_bloc.dart:16

What to do

  1. Resolve the 25 Low cohesion finding(s) in Cohesion (LCOM4) — start with voting_ballot_bloc.dart, paging_controller.dart, catalyst_database.dart. — One of this dimension's main actionable groups (25 warning-level).

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

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

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

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

Detailed fixes: d7_recommendation.md.

D10 · Test Quality2.1 / 10Critical✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

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

4 skipped, 1 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 12 tests. Measured on the JavaScript/TypeScript suite only — at least 252 test source file(s) (.dart, .py, .rs) went unread, so its test quality is unmeasured and is not in these counts.

Skipped test: (unnamed test) · ×4catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:12
No assertions: Get wallet details for catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:29

What to do

  1. Resolve the 4 Skipped test finding(s) in Test Quality — start with wallets.spec.ts (3), onboarding.spec.ts. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 1 No assertions finding(s) in Test Quality — start with wallets.spec.ts. — One of this dimension's main actionable groups (1 warning-level).

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

D12 · Dependency Hygiene9.8 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

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

0 outdated direct gem(s), 1 pinning defect(s). 1 declaration(s) graded against rubygems.org, none of them against a committed Gemfile.lock — this repository commits none, which a published gem correctly does not, so currency is read off the declared requirements: a declaration that does not cap below the current release resolves to it on `bundle install`. Whether any of these gems is DEPRECATED or YANKED is not graded — rubygems.org publishes no deprecation marker, and a yank removes a version rather than flagging it. Whether any is UNMAINTAINED is not graded either: no registry publishes a maintenance status, and release age does not stand in for one. Whether any is UNUSED is a source question, not a registry one. Known CVEs in this dependency graph are D30's question, read from the manifest there.

No Gemfile.lock committed by an application

What to do

  1. Resolve the 1 No Gemfile.lock committed by an application finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (1 warning-level).

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

D13 · REDACTED Scanning5.0 / 10Adequate✓ Tool-verified

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 5.0 / 10 · rule-coverage 100% · ceiling Prevented

1 secret(s) detected.

REDACTED

What to do

  1. Resolve the 1 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.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 1 shipped gem(s) use a banned license. Licences were resolved from rubygems.org over the 1 runtime gem(s) this repository declares. It commits no Gemfile.lock to close that set over, so the verdict covers the declarations rather than the whole resolved graph. Development-group and `add_development_dependency` gems are excluded: they are not distributed with this repository. ★ COVERAGE OF THIS VERDICT: it grades this repository's gem dependencies and nothing else. The repository also declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Cargo manifest and a Dart pubspec.yaml, and the licences of those dependency graphs were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Stronggated by 2 serious findings✓ 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

Top hotspots: catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs (5×18=90); catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart (4×18=72)

Hotspot: catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs · ×2catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs:57

What to do

  1. Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with mod.rs, proposals_cubit.dart. — One of this dimension's main actionable groups (2 warning-level).

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

D17 · Explicit Debt9.9 / 10Stronggated by 147 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

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

TodoComment · ×146utilities/wallet-tester/src/types/cardano.ts:113
FixmeCommentcatalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/witness.dart:17

What to do

  1. Resolve the 146 TodoComment finding(s) in Explicit Debt — start with proposals_test.dart (10), voices_modal_menu.dart (6), proposals_page.dart (5). — One of this dimension's main actionable groups (146 warning-level).
  2. Resolve the 1 FixmeComment finding(s) in Explicit Debt — start with witness.dart. — One of this dimension's main actionable groups (1 warning-level).

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

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

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

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

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

2 of 2 documentation facets pass in full. 170 document(s) read across 7 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality10.0 / 10Exemplary○ Nothing flagged

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 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 26 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

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

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.

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

2 naming inconsistencies among 506 declarations measured against a convention their peers follow.

`DRepID` spells `ID` where 555 names in the project spell it `Id`catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/cip95/drep.dart:3
`fromJSON` spells `JSON` where 72 names in the project spell it `Json`catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart:111

✓ On the Gold path — maintain.

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

D24 · Comment Value5.6 5.3 / 10Adequate✓ Tool-verified

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 5.3 / 10 · rule-coverage 95% · ceiling Documented

6 of 136 judged comments only repeat the code they sit on (4.4 %). 10 comment(s) in another language or script were not judged.

redundant comment · ×6catalyst_voices/apps/voices/e2e_tests/utils/wallets/lace-actions.ts:75
doc comments repeat the namescatalyst_voices/apps/voices/e2e_tests/data/accountConfigs.ts:33

What to do

  1. Resolve the 6 redundant comment finding(s) in Comment Value — start with lace-actions.ts (2), laceUtils.ts (2), yoroi-actions.ts. — One of this dimension's main actionable groups (6 recommendation-level).

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

D26 · Project Cohesion7.1 / 10Strong✓ 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 7.1 / 10 · rule-coverage 100% · ceiling Documented

6 of 42 build units (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion · ×6catalyst_voices/apps/voices/pubspec.yaml:1

What to do

  1. Resolve the 6 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with pubspec.yaml (5), Cargo.toml. — One of this dimension's main actionable groups (6 recommendation-level).

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

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

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

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

3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

REDACTED
REDACTED

What to do

  1. Resolve the 3 REDACTED finding(s) in Secrets (history) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

D29 · Static Analysis (SAST)1.4 / 10Critical✓ Tool-verified

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

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

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

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

88 finding(s): 0 critical, 83 high, 5 medium, 0 low. 73 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 2 file(s) — `.github/ISSUE_TEMPLATE/EPIC.yml`, `catalyst_voices/apps/voices/web/drift_worker.v1.js` — so no absence of findings in them is evidence of anything, and nothing in them was analysed. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

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

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

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

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

50 finding(s): 5 critical, 31 high, 13 medium, 1 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 31 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (30), REDACTED. — One of this dimension's main actionable groups (31 issue-level).
  2. Resolve the 4 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
  3. Resolve the 1 Critical vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

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

D31 · IaC & Container Security0.0 / 10Critical✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

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

84 finding(s): 0 critical, 12 high, 69 medium, 3 low.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 69 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (23), REDACTED (22), REDACTED (19). — One of this dimension's main actionable groups (69 warning-level).
  2. Resolve the 12 High IaC finding(s) in IaC & Container Security — start with REDACTED (8), REDACTED, REDACTED. — One of this dimension's main actionable groups (12 issue-level).
  3. Resolve the 3 Low IaC finding(s) in IaC & Container Security — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 recommendation-level).

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.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

573 of 573 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart. Counted over 573 of the 1836 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×570catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/transaction_builder.dart:1
Most significant orphaned file · ×3catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1
Dormant codebase

What to do

  1. Resolve the 570 Orphaned file finding(s) in Knowledge Freshness — start with mod.rs (2), proposals_page.dart (2), exceptions.dart (2). — One of this dimension's main actionable groups (570 recommendation-level).
  2. Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with proposals_v2_dao.dart, proposal_builder_bloc.dart, f15_static_campaign_categories.dart. — One of this dimension's main actionable groups (3 recommendation-level).
  3. 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 Coupling9.9 / 10Stronggated by 5 serious findings✓ Tool-verified

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

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

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

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

Strongest change-coupling: proposal_builder_bloc.dart↔document_repository.dart 65%; proposal_builder_state.dart↔document_repository.dart 60%; proposal_builder_state.dart↔proposal_service.dart 60%

Change coupling: proposal_builder_bloc.dart ↔ document_repository.dart · ×4catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1
Change-coupling hub: proposal_builder_state.dart → dependencies.dart, document_repository.dart, proposal_service.dartcatalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_state.dart

What to do

  1. Resolve the 4 Change coupling finding(s) in Change Coupling — start with proposal_builder_bloc.dart, proposal.dart, registration_dialog.dart. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with proposal_builder_state.dart. — One of this dimension's main actionable groups (1 warning-level).

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

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

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

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

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

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

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

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

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

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

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D40 · Network Egress Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.

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

0/2 network-egress controls present (network policy, egress restriction).

No network policy

What to do

  1. Resolve the 1 No network policy finding(s) in Network Egress Confinement. — One of this dimension's main actionable groups (1 recommendation-level).

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

D41 · Kernel & Syscall Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.

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

0/3 workload(s) run every container under a seccomp profile; 0/3 declare an AppArmor/SELinux profile.

No seccomp profile · ×3REDACTED:2

What to do

  1. Resolve the 3 No seccomp profile finding(s) in Kernel & Syscall Confinement — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 recommendation-level).

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

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

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

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_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 7 platform declaration(s) and 9 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.

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

AC2 · Forms & labels5.0 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×3) — utilities/wallet-tester/src/common/components/CBOREditor.tsx:164, utilities/wallet-tester/src/common/components/TxBuilderMultiFieldsSection.tsx:28, utilities/wallet-tester/src/common/components/TxBuilderMultiFieldsSection.tsx:36

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure5.1 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×2) — catalyst_voices/apps/voices/web/index.html:2, utilities/wallet-tester/index.html:2
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — catalyst_voices/apps/voices/web/index.html:2
  • user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. — catalyst_voices/apps/voices/web/index.html:33

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

AX10 · Code composition5.7 / 10Adequate✓ Tool-verified

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

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

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

AX3 · Project dependency cycles6.6 / 10Adequate✓ 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.

  • The projects catalyst_cardano_serialization → catalyst_key_derivation (pub) → catalyst_cardano_serialization form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference.
  • The projects catalyst_voices_models → catalyst_voices_shared → catalyst_voices_models form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference.

What to do

  • Break project reference cycles by extracting shared abstractions into a separate project; keep the graph a DAG.
AX4 · Dependency direction6.6 / 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.

  • `catalyst_voices_models` is a Domain project but references `catalyst_cardano_web`, 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.
  • `catalyst_voices_view_models` is a Domain project but references `catalyst_cardano_web`, 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 segregation9.7 / 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.

  • `ProposalsV2Dao` declares 17 abstract methods: `getCollaboratorsActions`, `getLocalDraftsProposalsBrief`, `getLocalDraftsVersionsTitles`, `getLocalRawProposal`, `getProposal`, `getProposalsBriefPage`, `getProposalsTotalTask`, `getVersionsTitles`, `getVisibleProposalsCount`, `updateProposalFavorite`, `watchLocalDraftProposalsCount`, `watchLocalDraftsProposalsBrief`, `watchLocalRawProposal`, `watchProposal`, `watchProposalsBriefPage`, `watchProposalsTotalTask`, `watchVisibleProposalsCount`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1355
  • `DocumentRepository` declares 24 abstract methods: `deleteDocumentDraft`, `encodeDocumentForExport`, `findAllVersions`, `findFirst`, `getAllVersionsOfId`, `getDocumentArtifact`, `getDocumentData`, `getDocumentMetadata`, `getLatestOf`, `getProposalSubmissionActions`, `getRefCount`, `getRefToDocumentData`, `isCached`, `isFavorite`, `parseDocumentForImport`, `publishDocument`, `queryVersionsOfId`, `removeAll`, `saveImportedDocument`, `upsertLocalDraftDocument`, `watchCount`, `watchDocument`, `watchDocuments`, `watchRefToDocumentData`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:19
  • `ProposalDocumentDataLocalSource` declares 16 abstract methods: `getCollaboratorsActions`, `getLocalDraftsVersionsTitles`, `getLocalRawProposalData`, `getPreviousOf`, `getProposalsTotalTask`, `getRawProposalData`, `getVersionsTitles`, `updateProposalFavorite`, `watchLocalDraftProposalsCount`, `watchLocalRawProposalData`, `watchProposalsCountV2`, `watchProposalsTotalTask`, `watchProposalTemplates`, `watchRawLocalDraftsProposalsBrief`, `watchRawProposalData`, `watchRawProposalsBriefPage`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/proposal_document_data_local_source.dart:3
  • `ProposalRepository` declares 24 abstract methods: `deleteDraftProposal`, `encodeProposalForExport`, `getLocalProposal`, `getProposal`, `getProposalPublishForRef`, `getProposalTemplate`, `getProposalV2`, `publishProposal`, `publishProposalAction`, `queryVersionsOfId`, `removeCollaboratorFromProposal`, `updateProposalFavorite`, `upsertDraftProposal`, `watchCommentsCount`, `watchLatestProposals`, `watchLocalDraftProposalsBrief`, `watchLocalDraftProposalsCount`, `watchLocalProposal`, `watchProposal`, `watchProposalPublish`, `watchProposalsBriefPage`, `watchProposalsCountV2`, `watchProposalTemplates`, `watchUserProposals`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:18
  • `ProposalService` declares 25 abstract methods: `addFavoriteProposal`, `createDraftProposal`, `deleteDraftProposal`, `encodeProposalForExport`, `forgetProposal`, `getLatestProposalVersion`, `getProposal`, `getProposalDetail`, `getProposalTemplate`, `getProposalV2`, `importProposal`, `isMaxProposalsLimitReached`, `publishProposal`, `removeFavoriteProposal`, `submitCollaboratorProposalAction`, `submitProposalForReview`, `unlockProposal`, `upsertDraftProposal`, `validateForCollaborator`, `watchInvitesApprovalsCount`, `watchMaxProposalsLimitReached`, `watchProposal`, `watchProposalsBriefPageV2`, `watchProposalsCountV2`, `watchWorkspaceProposalsBrief`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:10
  • `UserService` declares 22 abstract methods: `activeAccountId`, `user`, `watchUnlockedActiveAccount`, `watchUser`, `dispose`, `getPreviousRegistrationTransactionId`, `getRecoverableAccount`, `getUser`, `isActiveAccountPubliclyVerified`, `isPubliclyVerified`, `recoverAccount`, `refreshActiveAccountProfile`, `refreshActiveAccountVotingPower`, `registerAccount`, `removeAccount`, `removeAllAccounts`, `resendActiveAccountVerificationEmail`, `updateAccount`, `updateSettings`, `useAccount`, `useLocalUser`, `validateCatalystIdForProposerRole`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:12
  • `RustLibApiImplPlatform` declares 19 abstract methods: `dco_decode_AnyhowException`, `dco_decode_String`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_u_8`, `sse_decode_AnyhowException`, `sse_decode_String`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_u_8`, `sse_decode_i_32`, `sse_decode_bool`, `sse_encode_AnyhowException`, `sse_encode_String`, `sse_encode_list_prim_u_8_loose`, `sse_encode_list_prim_u_8_strict`, `sse_encode_u_8`, `sse_encode_i_32`, `sse_encode_bool`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — catalyst_voices/packages/libs/catalyst_compression/lib/src/rust/frb_generated.io.dart:13, catalyst_voices/packages/libs/catalyst_compression/lib/src/rust/frb_generated.web.dart:15
  • `RustLibApi` declares 29 abstract methods: `crateKeyDerivationBip32Ed25519SignatureGetInner`, `crateKeyDerivationBip32Ed25519SignatureNew`, `crateKeyDerivationBip32Ed25519SignatureToHex`, `crateKeyDerivationBip32Ed25519XPrivateKeyDeriveXprv`, `crateKeyDerivationBip32Ed25519XPrivateKeyDrop`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetChainCode`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetExtendedSecretKey`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetInner`, `crateKeyDerivationBip32Ed25519XPrivateKeyNew`, `crateKeyDerivationBip32Ed25519XPrivateKeySignData`, `crateKeyDerivationBip32Ed25519XPrivateKeyToHex`, `crateKeyDerivationBip32Ed25519XPrivateKeyVerifySignature`, `crateKeyDerivationBip32Ed25519XPrivateKeyXpublicKey`, `crateKeyDerivationBip32Ed25519XPublicKeyGetChainCode`, `crateKeyDerivationBip32Ed25519XPublicKeyGetInner`, `crateKeyDerivationBip32Ed25519XPublicKeyGetPublicKey`, `crateKeyDerivationBip32Ed25519XPublicKeyNew`, `crateKeyDerivationBip32Ed25519XPublicKeyToHex`, `crateKeyDerivationBip32Ed25519XPublicKeyVerifySignature`, `crateKeyDerivationMnemonicToXprv`, `rust_arc_increment_strong_count_Bip32Ed25519Signature`, `rust_arc_decrement_strong_count_Bip32Ed25519Signature`, `rust_arc_decrement_strong_count_Bip32Ed25519SignaturePtr`, `rust_arc_increment_strong_count_Bip32Ed25519XPrivateKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPrivateKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPrivateKeyPtr`, `rust_arc_increment_strong_count_Bip32Ed25519XPublicKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPublicKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPublicKeyPtr`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.dart:74
  • `RustLibApiImplPlatform` declares 68 abstract methods: `dco_decode_AnyhowException`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_String`, `dco_decode_bool`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_opt_String`, `dco_decode_u_8`, `dco_decode_u_8_array_32`, `dco_decode_u_8_array_64`, `dco_decode_u_8_array_96`, `dco_decode_unit`, `dco_decode_usize`, `sse_decode_AnyhowException`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_String`, `sse_decode_bool`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_opt_String`, `sse_decode_u_8`, `sse_decode_u_8_array_32`, and 28 more. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.io.dart:13, catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.web.dart:15

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

DM2 · Strongly-typed ids10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether domain identifiers are strongly typed (an extension-type / value-class wrapper) rather than raw primitives — consistency once an idiom exists.

Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. An id wrapper is recognised by VALUE SEMANTICS, not by being a struct — a record struct, a record class (`record ApartmentId(Guid Value)`) or a class declared by a typed-id base (`class MemberId : TypedIdValueBase`) all count, while a plain mutable class (reference equality) and a verb-phrase query record (`GetCustomerById`) do not. Deterministic, adoption percentage.

Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.

DM5 · Encapsulated state10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether an entity protects its own invariants — a class whose identity is derived from its fields (value equality) but whose fields are publicly mutable bypasses that invariant. Encapsulated state keeps identity-bearing fields immutable.

Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

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

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies — a domain entity fused to a persistence ORM (drift/floor/isar/objectbox/hive) on its own declaration (active-record) couples the domain to infrastructure. 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.

ED4 · Outbox / dual-write8.0 / 10Strong✓ Tool-verified

Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.

Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.

  • `DocumentRepositoryImpl.removeAll` performs two independent DURABLE writes — `_drafts` (a durable store) and `_localDocuments` (a second durable store) — in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox). — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:446

What to do

  • Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue in this repository's Dart: methods whose whole body still throws UnimplementedError or a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Dart: methods that only throw UnimplementedError or a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×31) — catalyst_voices/apps/voices/integration_test/suites/app_test.dart:37, catalyst_voices/apps/voices/integration_test/suites/app_test.dart:55, catalyst_voices/apps/voices/integration_test/suites/app_test.dart:68, …

What to do

  • Clear the softer debt: re-enable or delete tests marked `skip:`, decide whether each empty method or UnsupportedError is deliberate (and say so in a comment), and replace `// ignore_for_file: type=lint` with targeted, justified ignores.
M1 · Documentation (README)8.3 / 10Strong✓ Tool-verified

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

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

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation10.0 / 10Exemplary✓ 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.

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 accuracy0.0 / 10Critical✓ Tool-verified

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.

  • utilities/wallet-tester/README.md names Node.js 18, but the repository declares pinned 20, pinned 24. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — utilities/wallet-tester/README.md:5
  • .config/dictionaries/cspell/cs_CZ/README.md links to `Czech.txt`, but `.config/dictionaries/cspell/cs_CZ/Czech.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/cs_CZ/README.md:54
  • .config/dictionaries/cspell/es_ES/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/es_ES/src/additional_words.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/es_ES/README.md:44
  • .config/dictionaries/cspell/ru_RU/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/ru_RU/src/additional_words.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/ru_RU/README.md:52
  • .config/dictionaries/cspell/sk_SK/README.md links to `./Slovak.txt`, but `.config/dictionaries/cspell/sk_SK/Slovak.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/sk_SK/README.md:57
  • .config/dictionaries/cspell/al/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/al/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/al/dict/README.md:3
  • .config/dictionaries/cspell/bg_BG/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/bg_BG/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/bg_BG/dict/README.md:3
  • .config/dictionaries/cspell/city-names-finland/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/city-names-finland/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/city-names-finland/dict/README.md:3
  • .config/dictionaries/cspell/eu/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/eu/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/eu/dict/README.md:3
  • .config/dictionaries/cspell/it_IT/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/it_IT/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/it_IT/dict/README.md:3
  • .config/dictionaries/cspell/lv/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/lv/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/lv/dict/README.md:3
  • .config/dictionaries/cspell/redis/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/redis/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/redis/dict/README.md:3
  • .config/dictionaries/cspell/ro_RO/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/ro_RO/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/ro_RO/dict/README.md:3
  • .config/dictionaries/cspell/shell/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/shell/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/shell/dict/README.md:3
  • .config/dictionaries/cspell/sr_Cyrl/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/sr_Cyrl/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/sr_Cyrl/dict/README.md:3
  • .config/dictionaries/cspell/sr_Latn/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/sr_Latn/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .config/dictionaries/cspell/sr_Latn/dict/README.md:3

What to do

  • Reconcile the README with reality: utilities/wallet-tester/README.md names Node.js 18, but the repository declares pinned 20, pinned 24; .config/dictionaries/cspell/cs_CZ/README.md links to `Czech.txt`, but `.config/dictionaries/cspell/cs_CZ/Czech.txt` does not exist; .config/dictionaries/cspell/es_ES/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/es_ES/src/additional_words.txt` does not exist; .config/dictionaries/cspell/ru_RU/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/ru_RU/src/additional_words.txt` does not exist; .config/dictionaries/cspell/sk_SK/README.md links to `./Slovak.txt`, but `.config/dictionaries/cspell/sk_SK/Slovak.txt` does not exist.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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.

P10 · Library API & versioning6.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

  • 1 public type in `repository.permissions` is marked as implementation by its own namespace, folder or name: `PermissionHandlerImpl` (catalyst_voices/apps/voices/lib/permissions/permission_handler_factory.dart:26, name ends in `Impl`). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers. — catalyst_voices/apps/voices/lib/permissions/permission_handler_factory.dart:26
  • 1278 public types in `repository.src` are marked as implementation by their own namespace, folder or name: `CatalystImage` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_image.dart:3, `internal`), `CatalystSvgIcon` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_svg_icon.dart:6, `internal`), `CatalystSvgPicture` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_svg_picture.dart:5, `internal`), `AccountCubit` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_cubit.dart:9, `internal`), `AccountSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:3, `internal`), `AccountVerificationEmailSendSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:10, `internal`), `PendingEmailChangeSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:14, `internal`), `AccountRolesState` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_state.dart:5, `internal`), and 1270 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_image.dart:3

What to do

  • Hide `repository.permissions` (`PermissionHandlerImpl`) (Dart: a `_` name, or keep it under `lib/src/` unexported; Java: package-private (no modifier), or leave its package out of `module-info` exports; Kotlin: `internal`; Rust: `pub(crate)`, or keep the module private; Swift: leave it `internal` (the default) instead of `public`): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `repository.src` (`CatalystImage`, `CatalystSvgIcon`, `CatalystSvgPicture`, `AccountCubit`, `AccountSignal`, `AccountVerificationEmailSendSignal`, `PendingEmailChangeSignal`, `AccountRolesState`, and 1270 more) (Dart: a `_` name, or keep it under `lib/src/` unexported; Java: package-private (no modifier), or leave its package out of `module-info` exports; Kotlin: `internal`; Rust: `pub(crate)`, or keep the module private; Swift: leave it `internal` (the default) instead of `public`): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
P2 · Observability7.9 / 10Strong✓ Tool-verified

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

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

  • Only 9/29 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `catalyst_voices/apps/voices/ios`, `catalyst_voices/apps/voices/macos`, `catalyst_voices/packages/internal/catalyst_voices_assets`, `catalyst_voices/packages/internal/catalyst_voices_assets/example`, `catalyst_voices/packages/internal/catalyst_voices_localization` and 15 more.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling6.0 / 10Adequate✓ 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.

  • `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, `uv`, `gradle`, `bundler`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the `updates:` list. — REDACTED:7

What to do

  • Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally.
  • Dependabot is configured but does not watch `npm`, `uv`, `gradle`, `bundler` — add those `package-ecosystem` entries to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P6 · Release Hygiene10.0 / 10Exemplary✓ 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.

P7 · Outbound HTTP resilience10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

P8 · Schema migrations10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether database schema changes go through versioned migrations rather than being auto-created from the model at startup.

Method: Roslyn scan: EF Core DbContext for a versioned migrations directory versus bare EnsureCreated usage; off .NET, a file scan of dependency manifests, migration histories (Flyway, Liquibase, Alembic, Django, Rails, Prisma, TypeORM, Knex/Sequelize, golang-migrate, goose, Laravel, Doctrine, Diesel/sqlx) and schema auto-create in production source or config. Exhaustive, deterministic.

PF3 · Async & latency hygiene6.0 / 10Adequate✓ 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.

  • `_versionPartFiles` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — catalyst_voices/scripts/version_web_assets/web_asset_versioner.dart:336
  • `_getPrecompiledArtifacts` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/artifacts_provider.dart:99, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/artifacts_provider.dart:139
  • `_tryDownloadArtifacts` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/artifacts_provider.dart:184, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/artifacts_provider.dart:211
  • `build` is async and calls copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_cmake.dart:19, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_cmake.dart:19
  • `build` is async and calls createSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_gradle.dart:22, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_gradle.dart:22
  • `build` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_pod.dart:20, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_pod.dart:20
  • `run` is async and calls createSync, readAsBytesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/precompile_binaries.dart:52, catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/precompile_binaries.dart:44
  • `fs.existsSync` in `getExtension` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:41

What to do

  • Dart: await the async dart:io API (readAsString, writeAsString, Process.run, Future.delayed) instead of the *Sync variant or sleep(), or move heavy synchronous work to another isolate with Isolate.run.
  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety9.2 / 10Exemplary✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

R10 · Code Duplication4.5 / 10Weak✓ Tool-verified

React / JS · Code Health — The share of the scored frontend lines inside a near-exact copy-pasted block of substantial extent (the D4 clone algorithm over JS/TS tokens, D-386; each line once, 10 at none and 0 at a quarter of the lines, as D4): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Scored on the share of the scored frontend lines inside a reported copy, on the same curve as D4. Deterministic.

  • catalyst_voices/apps/voices/web/drift_worker.v1.js:5913 · catalyst_voices/apps/voices/web/drift_worker.v1.js:7359 — the two spans are one implementation copied and then locally edited — 900 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — catalyst_voices/apps/voices/web/drift_worker.v1.js:5913
  • utilities/wallet-tester/src/common/components/TxBuilder.tsx:131 · utilities/wallet-tester/src/common/components/TxBuilder.tsx:266 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — utilities/wallet-tester/src/common/components/TxBuilder.tsx:131
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:64 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/nufiUtils.ts:4 — the two spans are one implementation copied and then locally edited — 162 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:64
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:59 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:101 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:59
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:171 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:192 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:213 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:171
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:268 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:287 — 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. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:268
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:236 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:335 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:236
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:3874 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11834 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3874
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:10407 · catalyst_voices/apps/voices/web/drift_worker.v1.js:10424 — the two spans are one implementation copied and then locally edited — 186 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10407
  • utilities/wallet-tester/src/modules/SignDataPanel.tsx:3 · utilities/wallet-tester/src/modules/SubmitTxPanel.tsx:3 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — utilities/wallet-tester/src/modules/SignDataPanel.tsx:3
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:2168 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2184 — all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour — the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator's options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2168
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:12477 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12503 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:12477
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:4671 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4764 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:4671
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:9005 · catalyst_voices/apps/voices/web/drift_worker.v1.js:9018 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9005
  • catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:113 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:163 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:184 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:205 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:113
  • utilities/wallet-tester/src/common/components/TxBuilder.tsx:365 · utilities/wallet-tester/src/common/components/TxBuilder.tsx:406 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — utilities/wallet-tester/src/common/components/TxBuilder.tsx:365
  • utilities/wallet-tester/src/modules/WalletActionsSection.tsx:23 · utilities/wallet-tester/src/modules/WalletInfoSection.tsx:66 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — utilities/wallet-tester/src/modules/WalletActionsSection.tsx:23
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:6215 · catalyst_voices/apps/voices/web/drift_worker.v1.js:6226 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:6215
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:7277 · catalyst_voices/apps/voices/web/drift_worker.v1.js:7349 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:7277
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:3307 · catalyst_voices/apps/voices/web/drift_worker.v1.js:3333 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3307
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:3991 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4045 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3991
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:6750 · catalyst_voices/apps/voices/web/drift_worker.v1.js:6760 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:6750
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:9753 · catalyst_voices/apps/voices/web/drift_worker.v1.js:9801 · catalyst_voices/apps/voices/web/drift_worker.v1.js:10931 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9753
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:10264 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11251 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10264
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:10317 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11424 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10317
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:11524 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11548 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:11524
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:11921 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11953 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:11921
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:12381 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12392 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:12381
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:183 · catalyst_voices/apps/voices/web/drift_worker.v1.js:734 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:183
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:276 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1976 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2199 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2215 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:276
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:743 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1984 · catalyst_voices/apps/voices/web/drift_worker.v1.js:3270 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4207 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:743
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:1401 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1410 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1401
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:1954 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2083 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1954
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:2062 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2071 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2062
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:2895 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2928 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2895
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:4480 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4636 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:4480
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:4687 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4702 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4712 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4722 · +3 more site(s) not listed — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — catalyst_voices/apps/voices/web/drift_worker.v1.js:4687
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:11399 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11863 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — catalyst_voices/apps/voices/web/drift_worker.v1.js:11399
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:12630 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12712 — 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. — catalyst_voices/apps/voices/web/drift_worker.v1.js:12630
  • catalyst_voices/apps/voices/web/drift_worker.v1.js:797 · catalyst_voices/apps/voices/web/drift_worker.v1.js:807 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4253 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4280 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — catalyst_voices/apps/voices/web/drift_worker.v1.js:797

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries7.7 / 10Strong✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • utilities/wallet-tester/src/common/helpers/diag2hex.ts:1 imports cborg/lib/diagnostic, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — utilities/wallet-tester/src/common/helpers/diag2hex.ts:1
  • utilities/wallet-tester/src/common/helpers/hex2diag.ts:1 imports cborg/lib/diagnostic, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — utilities/wallet-tester/src/common/helpers/hex2diag.ts:1

What to do

  • Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity6.0 / 10Adequate✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • (anonymous) has cyclomatic complexity 53 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:11616
  • (anonymous) has cyclomatic complexity 51 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9919
  • bm has cyclomatic complexity 50 and cognitive complexity 122; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2692
  • a8 has cyclomatic complexity 50 and cognitive complexity 65; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1511
  • iE has cyclomatic complexity 40 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10584
  • buildUnsignedTx has cyclomatic complexity 34 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:34
  • (anonymous) has cyclomatic complexity 32 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9038
  • (anonymous) has cyclomatic complexity 31 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10118
  • jj has cyclomatic complexity 30 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:8466
  • qY has cyclomatic complexity 30 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1360
  • wN has cyclomatic complexity 28 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:478
  • bR has cyclomatic complexity 28 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:888
  • vM has cyclomatic complexity 27 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2906
  • h3 has cyclomatic complexity 27 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:8730
  • h1 has cyclomatic complexity 26 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:8765
  • eK has cyclomatic complexity 26 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10520
  • ks has cyclomatic complexity 25 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:7733
  • jc has cyclomatic complexity 25 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9199
  • (anonymous) has cyclomatic complexity 24 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3843
  • jS has cyclomatic complexity 23 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:7854
  • dz has cyclomatic complexity 23 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1756
  • rh has cyclomatic complexity 23 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2878
  • iD has cyclomatic complexity 22 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10565
  • (anonymous) has cyclomatic complexity 22 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3931
  • (anonymous) has cyclomatic complexity 22 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3988
  • j has cyclomatic complexity 21 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:8163
  • rt has cyclomatic complexity 21 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1554
  • iI has cyclomatic complexity 21 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10505
  • (anonymous) has cyclomatic complexity 21 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:9569
  • wr has cyclomatic complexity 20 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2645
  • qH has cyclomatic complexity 20 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2773
  • cE has cyclomatic complexity 20 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10628
  • qD has cyclomatic complexity 20 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:3068
  • rg has cyclomatic complexity 19 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:2993
  • we has cyclomatic complexity 19 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1005
  • rs has cyclomatic complexity 18 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1134
  • (anonymous) has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:10327
  • cg has cyclomatic complexity 17 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:8323
  • is has cyclomatic complexity 17 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:7806
  • oj has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — catalyst_voices/apps/voices/web/drift_worker.v1.js:55
R3 · Large Files9.1 / 10Exemplary✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • catalyst_voices/apps/voices/web/drift_worker.v1.js has 13579 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — catalyst_voices/apps/voices/web/drift_worker.v1.js:1
  • utilities/wallet-tester/src/common/components/TxBuilder.tsx has 469 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — utilities/wallet-tester/src/common/components/TxBuilder.tsx:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage2.5 / 10Weak✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×39) — catalyst_voices/apps/voices/web/drift_worker.v1.js:1, utilities/wallet-tester/src/common/components/TxBuilder.tsx:1, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness9.7 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

R6 · Tooling10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • The package in `utilities/wallet-tester` declares the lint script `lint` (`eslint './src/**/*.{ts,tsx}'`), but no step of this repository's CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs `npm run lint` in `utilities/wallet-tester` (or the workspace's task runner). — utilities/wallet-tester/package.json:10
R7 · Dead Code0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • Unreachable from the 11 application, 6 tooling and 47 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (11 application, 6 tooling, 47 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×2) — catalyst_voices/apps/voices/web/drift_worker.v1.js, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/test-fixtures.ts
  • Nothing imports this binding — it is safe to review for removal. (×3) — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/walletConfigs.ts:127, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/walletConfigs.ts:137, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/nufiUtils.ts:29

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene9.5 / 10Exemplary✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Declared in utilities/wallet-tester/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — utilities/wallet-tester/package.json:24

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

S1 · Web-Security Posture9.5 / 10Exemplary✓ Tool-verified

Other · Security — Only what this repository's own non-C# files could be read for was assessed — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • Set: Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy, Referrer-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options. Missing: Content-Security-Policy — the four headers that carry the points of this card's security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each. (−0.5 on this card.) — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/nginx.conf:17

What to do

  • Add Content-Security-Policy beside the headers already set; Content-Security-Policy is the one that pays for itself first, then Strict-Transport-Security, then nosniff and a frame policy.
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.

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

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

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

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

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

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

X18 · Disposal-pattern correctness7.7 / 10Strong✓ Tool-verified

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

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

  • `_SingleLineHttpsUrlWidgetState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_focusNode` itself (line 85, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_focusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_focusNode.dispose();` in `dispose()` before `super.dispose()`. — catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:85

What to do

  • Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X2 · Cancellation propagation7.6 / 10Strong✓ Tool-verified

Other · Code Health — Whether functions that make a cancellable request accept or pass on an AbortSignal or a CancelToken (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 3/5 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; Dio, AbortableRequest) accept an AbortSignal or a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a `signal` (Dart: `CancelToken? cancelToken`) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `__wbg_init` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. (×2) — catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:882, catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:840

What to do

  • Thread an AbortSignal or a CancelToken through functions that make requests, so the work stops when its caller gives up.
X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements (or a repository exception type deriving from it) controlled by an `if` — directly or through the `using`, `lock` or `try` that wraps the throw — whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`); in the `else` branch, for a conjunct of the admitting condition that is FALSE of a non-null `p`. Range guards are read for bounds that leave nothing and for a `p > C.Count` bound whose index then reaches `C[p]`, `C.RemoveAt(p)` or a method of the same type that indexes with it. Deterministic, provable per finding. Advisory.

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.

X23 · Unguarded diagnostic materialisation7.2 / 10Strong✓ Tool-verified

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

  • `finer` at line 47 is called with an argument built by `arguments.join('…')` (line 47), whose cost grows with the collection it walks. Dart evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because finer is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isLoggable` test, no `kDebugMode` or debug flag, no `assert`, no closure the logger calls only when the level is on. — catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/util.dart:47
  • `finer` at line 109 is called with an argument built by `arguments.join('…')` (line 109), whose cost grows with the collection it walks. Dart evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because finer is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isLoggable` test, no `kDebugMode` or debug flag, no `assert`, no closure the logger calls only when the level is on. — catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/util.dart:109

What to do

  • In Dart, put the construction behind the logger's own check (`if (log.isLoggable(Level.FINE))` for package:logging, `if (kDebugMode)` for a line only a debug build needs), or hand the logger a closure it calls only when the record is written (`log.fine(() => 'rows: ${rows.map((r) => r.id).join(', ')}')`; package:logger's `logger.d(() => …)` likewise). Interpolating the value into the message is not the fix: Dart builds the string, and every `map`, `join` or `jsonEncode` inside it, before the call is entered.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

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

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

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

Other · Code Health — Whether a `for` loop leaves the `RefCell` it is walking alone — safe Rust rejects a body that changes the collection its loop borrows at compile time, except through interior mutability: a `RefCell` borrowed in the loop's header stays borrowed until the loop ends, so a `borrow_mut()` of it inside the body panics with `already borrowed: BorrowMutError` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen. Whether a `for … in` loop leaves the `List`, `Map` or `Set` it is walking alone — Dart's collection iterators check that the collection has not changed since the loop began, so a body that adds to or removes from the very collection the loop is walking (or the map whose `keys`, `values` or `entries` it walks) makes the next step throw `ConcurrentModificationError` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.

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

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

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

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

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

  • `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×7) — catalyst_voices/packages/libs/catalyst_cose/lib/src/cose_sign1.dart:105, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/vault/secure_storage_vault.dart:314, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/user/catalyst_id_public_ext.dart:15, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×7) — catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart:367, catalyst_voices/apps/voices/web/drift_worker.v1.js:11, catalyst_voices/apps/voices/web/drift_worker.v1.js:500, …
  • `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×13) — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:27, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:37, catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:47, …

What to do

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

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

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

X4 · Structured logging5.2 / 10Adequate✓ Tool-verified

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • `error!` at line 71 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. (×2) — catalyst-gateway/bin/src/cli.rs:71, catalyst-gateway/bin/src/telemetry.rs:71
  • `error!` at line 155 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/logger.rs:155
  • `error!` at line 159 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/logger.rs:159
  • `error!` at line 68 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/telemetry.rs:68
  • `error!` at line 74 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/telemetry.rs:74
  • `info!` at line 119 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `info!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/cassandra_db.rs:119
  • `info!` at line 276 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `info!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/chain_follower.rs:276
  • `error!` at line 419 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/mod.rs:419
  • `error!` at line 233 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/str_env_var.rs:233
  • `error!` at line 238 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/str_env_var.rs:238
  • `error!` at line 247 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/settings/str_env_var.rs:247
  • `error!` at line 13 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/utilities/net.rs:13
  • `error!` at line 32 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/utilities/net.rs:32
  • `error!` at line 58 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/common/types/cardano/ada_value.rs:58
  • `error!` at line 60 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/common/types/cardano/asset_value.rs:60
  • `debug!` at line 139 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/common/auth/rbac/scheme.rs:139
  • `debug!` at line 179 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/common/auth/rbac/scheme.rs:179
  • `debug!` at line 169 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/common/auth/rbac/token.rs:169
  • `debug!` at line 78 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/health/inspection_get.rs:78
  • `error!` at line 160 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/staking/assets_get.rs:160
  • `error!` at line 219 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:219
  • `error!` at line 231 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:231
  • `error!` at line 242 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:242
  • `error!` at line 427 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:427
  • `error!` at line 511 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:511
  • `error!` at line 522 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:522
  • `error!` at line 532 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:532
  • `error!` at line 543 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:543
  • `debug!` at line 106 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/index/queries/sync_status/get.rs:106
  • `error!` at line 206 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/index/block/certs.rs:206
  • `error!` at line 210 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/index/block/certs.rs:210
  • `error!` at line 111 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/index/block/rbac509/mod.rs:111
  • `error!` at line 117 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/index/block/rbac509/mod.rs:117
  • `debug!` at line 253 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/db/event/mod.rs:253
  • `debug!` at line 509 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`. — catalyst-gateway/bin/src/cardano/mod.rs:509

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types9.4 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether Dart's sound null safety is on and is not undermined by null assertions — a package whose `environment: sdk:` lower bound is 2.12 or above is null safe, so `String` cannot hold null and `String?` must be checked before use, and each postfix `!` is a run-time `Null check operator used on a null value` the author has told the analyzer cannot happen.

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

WCAG coverage — what static analysis assessed

Statically assessed 13 of 55 WCAG 2.2 Level A/AA success criteria (24%; ≈26% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 42 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 42 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.1, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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 Health45.7Weak — gated by R7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture75.2StrongSolid.
Maturity51.8Adequate — gated by D34, M4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness52.1Adequate — gated by D10, R4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security71.3Adequate — gated by D29, D31, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100.0ExemplaryStrongest area.
Event-Driven80.0StrongSolid.
Accessibility71.5StrongSolid.
Performance60.0AdequateAcceptable, with room to improve.
Unscored — 3 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • X10 Duplicated predicate — 21 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 6 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 43 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.

  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads. Dart isolates share no mutable memory, so no two requests write one object at the same instant. Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • 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
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — The runtime tier booted this repository's service, but crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9042: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:9042/ Call log: - navigating to "http://127.0.0.1:9042/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9043: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:9043/ Call log: - navigating to "http://127.0.0.1:9043/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9044: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:9044/ Call log: - navigating to "http://127.0.0.1:9044/", waiting until "load" rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:9045: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:9045/ Call log: - navigating to "http://127.0.0.1:9045/", waiting until "load" ran the repo's playwright suite against the booted app but captured no surfaces (suite failed to install/run, or visited no pages) — see runtime diagnostics. This repository also has a user interface (26 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates) that the booted service does not serve, and this scan has no strategy that reaches it — so no WCAG success criterion was verified in a rendered page on this run. That is a gap in OUR tooling, not a finding about your application: nothing here says the interface is inaccessible. The static accessibility checks still ran.
  • AXS1 Runtime exposed surface — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — no .dart test runner
  • 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.
  • D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed Rust surface was not measured.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D25 ADR Conformance — None of 21 binding record(s) states a rule in checkable form (a backticked element with a prohibition, or an `adr-rules` block), so conformance cannot be read from the code. Write the rule as an `adr-rules` block (`forbid:` a symbol, a package or a dependency) to make it checkable.
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.dart), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — 1 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D42 Runtime Threat Enforcement — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.
  • D8 Code Coverage — Coverage not measured — JavaScript/TypeScript suite
  • DM1 Aggregate boundaries — not scored for Dart: aggregate-vs-value-object classification cannot be told apart in source (every class-holding-class reads alike), and a child COLLECTION (legitimate membership) vs a single embedded aggregate is indistinguishable — reported as guidance rather than measured
  • DM3 Integration-event coupling — not scored for Dart: a cross-package domain leak cannot be told apart in source from a legitimate shared-kernel package, and most repositories ship a single package — reported as guidance rather than measured
  • DM4 Rich vs anemic domain model — this Dart repository declares no domain-layer entity carrying stored data (every type is a typed-id wrapper, DTO/config, ORM row or presentation container), so DM4's rich-vs-anemic read has no population to be taken over
  • DM7 Repository granularity — not scored for Dart: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable — reported as guidance rather than measured
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, which this analysis does not build from source alone for this language. Reported as guidance rather than measured
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for classes extending benchmark_harness's `BenchmarkBase`, `AsyncBenchmarkBase` or `PerfBenchmarkBase` (directly or through a base of your own), `benchmark(…)` calls under the pub `benchmark` package, Flutter's `benchmarkWidgets`, `watchPerformance` or `traceAction` in a test importing flutter_test, integration_test or flutter_driver, or benchmark_harness, benchmark or web_benchmarks in a pubspec.yaml, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • 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.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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
  • X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 148 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 40 more in this group — see findings.md.
D30 · Dependency Vulnerabilities · High CVE · ×31
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 6 more in this group — see findings.md.
D31 · IaC & Container Security · High IaC · ×12
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <button> with no accessible text · ×3
  • <button> with no accessible text utilities/wallet-tester/src/common/components/CBOREditor.tsx:164 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
  • <button> with no accessible text utilities/wallet-tester/src/common/components/TxBuilderMultiFieldsSection.tsx:28 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
  • <button> with no accessible text utilities/wallet-tester/src/common/components/TxBuilderMultiFieldsSection.tsx:36 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
D28 · Secrets (history) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
AC3 · Page structure · <html> without a lang · ×2
  • <html> without a lang catalyst_voices/apps/voices/web/index.html:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang utilities/wallet-tester/index.html:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
AX3 · Project dependency cycles · Project dependency cycle · ×2
  • Project dependency cycle — The projects catalyst_cardano_serialization → catalyst_key_derivation (pub) → catalyst_cardano_serialization form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference.
  • Project dependency cycle — The projects catalyst_voices_models → catalyst_voices_shared → catalyst_voices_models form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference.
AX4 · Dependency direction · Dependency-rule violation · ×2
  • Dependency-rule violation: catalyst_voices_models (Domain) → catalyst_cardano_web (Web) — `catalyst_voices_models` is a Domain project but references `catalyst_cardano_web`, 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.
  • Dependency-rule violation: catalyst_voices_view_models (Domain) → catalyst_cardano_web (Web) — `catalyst_voices_view_models` is a Domain project but references `catalyst_cardano_web`, 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.
D5 · Coupling · Circular dependency · ×2
  • Circular dependency — catalyst_cardano_serialization → catalyst_key_derivation (pub) → catalyst_cardano_serialization
  • Circular dependency — catalyst_voices_models → catalyst_voices_shared → catalyst_voices_models
AC3 · Page structure · Viewport restricts zoom · ×1
  • Viewport restricts zoom catalyst_voices/apps/voices/web/index.html:33 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
D13 · REDACTED Scanning · Leaked secret · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Critical vulnerability · ×1
  • REDACTED
ED4 · Outbox / dual-write · Dual write (no outbox) · ×1
  • Dual write (no outbox): DocumentRepositoryImpl.removeAll catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:446 — `DocumentRepositoryImpl.removeAll` performs two independent DURABLE writes — `_drafts` (a durable store) and `_localDocuments` (a second durable store) — in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox).
Serious — 1073 finding(s)
D17 · Explicit Debt · TodoComment · ×146
  • TodoComment utilities/wallet-tester/src/types/cardano.ts:113 — // TODO: add support for scripts — 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 utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:91 — // TODO: add other types — 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 utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:189 — // TODO: — 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 utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:192 — // TODO: — 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 utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:199 — // TODO: support other types — 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 utilities/wallet-tester/src/common/components/TxBuilder.tsx:196 — // TODO: add more type support — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/datum.dart:15 — // TODO(ilap): Requires a proper plutus data type implementation. — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/datum.dart:51 — // TODO(ilap): Add length constraint and/or implement proper hash type. — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/redeemer.dart:5 — // TODO(ilap): implement proper redeemer class, this is just a placeholder. — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/redeemer.dart:28 — // TODO(ilap): implement proper plutus data class, this is just a placeholder. — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart:213 — // TODO(ilap): Check whether the Plutus script bytes are valid CBOR CborByte-s — 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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/transaction_builder.dart:916 — // TODO(ilap): Consider using BigInt for multiasset's values. — 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 catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/walletUtils.ts:44 — //TODO: move specific cases to specific utils for wallets — 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 catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:42 — // TODO: Add keys to source app and change locators to locate based on keys — 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 catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/voting/voting_power_view_model.dart:17 — // TODO(dt-iohk): consider how to format big numbers — 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 catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/exception/localized_permission_need_rationale_exception.dart:17 — // TODO(LynxLynxx): Add more permissions rationales when needed — 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 catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:26 — // TODO(LynxLynxx): Calculate stage based on campaign phase and status when requirements are clear. — 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 catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_stage.dart:20 — // TODO(LynxLynxx): Return correct stage based on campaign phase and status when requirements — 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 catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/actions/actions_card_type.dart:9 — // TODO(LynxLynxx): Verify what page tab voting power should be associated with — 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 catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/utils/launch_url_mixin.dart:3 — // TODO(LynxLynxx): in future we can create error handling — 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 catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/utils/string_ext.dart:23 — // TODO(dt-iohk): temporary solution to format dynamic strings as plural, — 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 catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/crypto/crypto_service.dart:5 — // TODO(damian-molinski): Expose KeyDerivation interface and have it — 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 catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/crypto/local_crypto_service.dart:7 — // TODO(dt-iohk): It will no longer be necessary to import this after that PR is merged: — 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 catalyst_voices/packages/internal/catalyst_voices_services/lib/src/voting/voting_service.dart:28 — // TODO(dt-iohk): consider to use campaign assigned to the proposal — 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 catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:399 — // TODO(dt-iohk): consider to use campaign assigned to the proposal — 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.
  • + 121 more in this group — see findings.md.
D31 · IaC & Container Security · Medium IaC · ×69
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 44 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×39
  • No test reaches this file catalyst_voices/apps/voices/web/drift_worker.v1.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/TxBuilder.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/modules/SignTxPanel.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/CBOREditor.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/modules/WalletInfoSection.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/reviews-mock-server/server.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/types/cardano.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/App.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/helpers/extractApiData.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/Combobox.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/InfoItem.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/modules/WalletActionsSection.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/Dropdown.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/WalletCard.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_error.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/TxBuilderMultiFieldsSection.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/TxBuilderSingleFieldSection.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/WalletViewSelection.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/Badge.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/Input.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/catalyst_cardano.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/CheckBox.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file utilities/wallet-tester/src/common/components/InputBlock.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • + 14 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×25
  • Low cohesion: VotingBallotBloc (LCOM4 11) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting_ballot/voting_ballot_bloc.dart:16 — VotingBallotBloc's methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: PagingController (LCOM4 10) catalyst_voices/apps/voices/lib/widgets/pagination/paging_controller.dart:18 — PagingController's methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DriftCatalystDatabase (LCOM4 9) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database.dart:63 — DriftCatalystDatabase's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: NewProposalCubit (LCOM4 6) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:14 — NewProposalCubit's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: LocalCatGateway (LCOM4 6) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart:51 — LocalCatGateway's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: VaultKeychain (LCOM4 6) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/user/keychain/vault_keychain.dart:15 — VaultKeychain's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: RustLibWire (LCOM4 6) catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.io.dart:343 — RustLibWire's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _VoicesRawPopupMenuStateRoute (LCOM4 6) catalyst_voices/apps/voices/lib/widgets/menu/voices_raw_popup_menu_button.dart:110 — _VoicesRawPopupMenuStateRoute's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DevToolsBloc (LCOM4 5) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/dev_tools/dev_tools_bloc.dart:12 — DevToolsBloc's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ProposalCubit (LCOM4 5) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:16 — ProposalCubit's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: RegistrationCubit (LCOM4 5) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/registration_cubit.dart:19 — RegistrationCubit's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FakeCatalystPrivateKey (LCOM4 5) catalyst_voices/packages/internal/catalyst_voices_dev/lib/src/catalyst_voices_models/crypto/catalyst_crypto_fakes.dart:5 — FakeCatalystPrivateKey's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CampaignRepositoryImpl (LCOM4 5) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/campaign/campaign_repository.dart:42 — CampaignRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: VoicesTextFieldState (LCOM4 5) catalyst_voices/apps/voices/lib/widgets/text_field/voices_text_field.dart:348 — VoicesTextFieldState's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: __AddCollaboratorTextFieldState (LCOM4 4) catalyst_voices/apps/voices/lib/pages/co_proposers/widgets/add_collaborator/add_collaborator_text_field.dart:26 — __AddCollaboratorTextFieldState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _ProposalPageState (LCOM4 4) catalyst_voices/apps/voices/lib/pages/proposal/proposal_page.dart:74 — _ProposalPageState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _ProposalBuilderBodyState (LCOM4 4) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:71 — _ProposalBuilderBodyState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: KeychainCreationCubit (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/cubits/keychain_creation_cubit.dart:15 — KeychainCreationCubit's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: WalletLinkCubit (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/cubits/wallet_link_cubit.dart:15 — WalletLinkCubit's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: WorkspaceBloc (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:13 — WorkspaceBloc's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: VotingMockRepository (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/voting/voting_repository.dart:7 — VotingMockRepository's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: NoopLoggingService (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/logging/noop_logging_service.dart:5 — NoopLoggingService's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ProposalCommentsSegment (LCOM4 4) catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/proposal_comments/proposal_comments_segment.dart:62 — ProposalCommentsSegment's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _DevToolsEnablerState (LCOM4 4) catalyst_voices/apps/voices/lib/widgets/dev_tools/dev_tools_enabler.dart:26 — _DevToolsEnablerState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _DocumentBuilderSectionTileState (LCOM4 4) catalyst_voices/apps/voices/lib/widgets/tiles/specialized/document_builder_section_tile.dart:60 — _DocumentBuilderSectionTileState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×21
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_localization/lib/src/manage_l10n.dart:84 — catalyst_voices/packages/internal/catalyst_voices_localization/lib/src/manage_l10n.dart:84-103 | catalyst_voices/packages/internal/catalyst_voices_localization/lib/src/manage_l10n.dart:105-118 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:315 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:315-328 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:111-126 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:224 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:224-237 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:51-64 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:146 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:146-165 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:232-245 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:326 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:326-339 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_ref_dto.dart:62-76 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/dev_tools_page.dart:20 — catalyst_voices/apps/voices/lib/pages/dev_tools/dev_tools_page.dart:20-33 | catalyst_voices/apps/voices/lib/pages/dev_tools/document_lookup/document_lookup_page.dart:22-38 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:153 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:153-166 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:168-181 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_theme_menu_tile.dart:28 — catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_theme_menu_tile.dart:28-42 | catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_timezone_menu_tile.dart:28-41 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/discovery/sections/stay_involved/widgets/reviewer_card.dart:52 — catalyst_voices/apps/voices/lib/pages/discovery/sections/stay_involved/widgets/reviewer_card.dart:52-65 | catalyst_voices/apps/voices/lib/pages/discovery/sections/stay_involved/widgets/voter_card.dart:45-58 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:261 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:261-274 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:245-259 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/app/view/app_session_listener.dart:55 — catalyst_voices/apps/voices/lib/app/view/app_session_listener.dart:55-69 | catalyst_voices/apps/voices/lib/app/view/app_session_listener.dart:71-84 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:183 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:183-196 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:190-203 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/create_new_proposal_action_buttons.dart:118 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/create_new_proposal_action_buttons.dart:118-131 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/create_new_proposal_action_buttons.dart:141-156 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:29 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:29-42 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:25-38 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:71 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:71-84 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart:71-84 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_view_tile.dart:106 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_view_tile.dart:106-119 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_view_tile.dart:125-138 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/reporting/noop_reporting_service.dart:31 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/reporting/noop_reporting_service.dart:31-44 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/reporting/sentry_reporting_service.dart:85-100 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:126 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:126-139 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:265-278 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/widgets/text_field/voices_money_field.dart:247 — catalyst_voices/apps/voices/lib/widgets/text_field/voices_money_field.dart:247-260 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_num_field.dart:121-134 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_result_panel.dart:50 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_result_panel.dart:50-63 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_result_panel.dart:69-89 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:247 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:247-264 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:270-283 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×20
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cose/lib/src/cose_sign1.dart:105 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:27 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:37 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:47 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:57 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:67 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:122 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:159 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/utils/string_ext.dart:118 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/utils/uuid_utils.dart:17 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/vault/secure_storage_vault.dart:314 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/signed_document/signed_document_mapper.dart:110 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/user/catalyst_id_public_ext.dart:15 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/converter/string_list_converter.dart:23 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/config/config_repository.dart:51 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/user/catalyst_id.dart:210 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/app/app_version.dart:70 — `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:114 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:147 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:138 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×18
  • Edited copy of a member (9 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/user/keychain/vault_keychain_provider.dart:41 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/user/keychain/vault_keychain_provider.dart:41-49 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/user/keychain/vault_keychain_provider.dart:54-65 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/dev_tools/dev_tools_bloc.dart:92 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/dev_tools/dev_tools_bloc.dart:92-103 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/dev_tools/dev_tools_bloc.dart:105-113 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:303 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:303-311 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:313-321 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_lock_button.dart:12 — catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_lock_button.dart:12-20 | catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_unlock_button.dart:12-20 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:77 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:77-85 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:210-218 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:90 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:90-98 | catalyst_voices/apps/voices/lib/pages/error_page/error_page.dart:103-111 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:104 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:104-112 | catalyst_voices/apps/voices/lib/pages/error_page/error_page.dart:119-127 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/widgets/feature_flags/feature_flag_widget.dart:17 — catalyst_voices/apps/voices/lib/widgets/feature_flags/feature_flag_widget.dart:17-27 | catalyst_voices/apps/voices/lib/widgets/feature_flags/feature_flag_builder.dart:25-33 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:445 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:445-456 | catalyst_voices/apps/voices/lib/pages/proposal/proposal_page.dart:204-212 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/routes/guards/session_unlocked_guard.dart:14 — catalyst_voices/apps/voices/lib/routes/guards/session_unlocked_guard.dart:14-23 | catalyst_voices/apps/voices/lib/routes/guards/user_access_guard.dart:13-21 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_segments.dart:56 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_segments.dart:56-70 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_changing.dart:27-35 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cache.dart:22 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cache.dart:22-32 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit_cache.dart:19-27 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_segments_navigation.dart:10 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_segments_navigation.dart:10-22 | catalyst_voices/apps/voices/lib/widgets/segments/segments_list_view_builder.dart:15-23 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:99 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:99-107 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:91-99 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/cards/active_campaign_card.dart:9 — catalyst_voices/apps/voices/lib/pages/dev_tools/cards/active_campaign_card.dart:9-20 | catalyst_voices/apps/voices/lib/pages/discovery/sections/campaign_details/campaign_details.dart:14-22 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/simple_text_entry_widget.dart:108 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/simple_text_entry_widget.dart:108-117 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:78-86 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:119 — catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:119-127 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_limit_reached_dialog.dart:109-117 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/actions_header_text.dart:8 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/actions_header_text.dart:8-16 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:137-145 — 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 · Duplicated block (9 lines × 2) · ×15
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34-42 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart:34-42 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart` and `catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:8 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:8-16 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:31-39 — 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 `catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:8` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:363 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:363-371 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:401-409 — 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 `catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:363` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:74 — catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:74-82 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:309-317 — 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 `catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:74` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:278 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:278-286 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:204-212 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:278` 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) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:53 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:53-61 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:48-56 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:412 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:412-420 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:407-415 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:412` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (9 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:200 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:200-208 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:180-188 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:200` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_profiler_arguments.dart:36 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_profiler_arguments.dart:36-44 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_profiler_arguments.dart:79-87 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:103 — catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:103-111 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_limit_reached_dialog.dart:93-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:123 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:123-131 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:109-117 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/account/delete_keychain_dialog.dart:14 — catalyst_voices/apps/voices/lib/pages/account/delete_keychain_dialog.dart:14-22 | catalyst_voices/apps/voices/lib/pages/account/edit_roles_dialog.dart:22-30 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/campaign/stage/after_proposal_submission_page.dart:47 — catalyst_voices/apps/voices/lib/pages/campaign/stage/after_proposal_submission_page.dart:47-55 | catalyst_voices/apps/voices/lib/pages/campaign/stage/pre_proposal_submission_page.dart:44-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_pagination_empty_state.dart:8 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_pagination_empty_state.dart:8-16 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_empty_state.dart:8-16 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:140 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:140-148 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:136-144 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart` and `catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×14
  • Edited copy of a member (8 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:55 — catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:55-62 | catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:64-71 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) catalyst_voices/apps/voices/lib/notification/catalyst_notification.dart:55 — catalyst_voices/apps/voices/lib/notification/catalyst_notification.dart:55-62 | catalyst_voices/apps/voices/lib/notification/catalyst_notification.dart:64-71 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:159 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:159-166 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:323-333 — 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) catalyst_voices/apps/voices/lib/widgets/document_builder/value/multiline_text_entry_markdown_widget.dart:137 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/multiline_text_entry_markdown_widget.dart:137-147 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/simple_text_entry_widget.dart:119-126 — 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) catalyst_voices/apps/voices/lib/pages/account/unlock_keychain_dialog.dart:25 — catalyst_voices/apps/voices/lib/pages/account/unlock_keychain_dialog.dart:25-32 | catalyst_voices/apps/voices/lib/pages/registration/registration_dialog.dart:24-34 — 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) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:460 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:460-475 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:207-214 — 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) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:84 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:84-91 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:110-119 — 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) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:174 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:174-181 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:181-188 — 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) catalyst_voices/apps/voices/lib/pages/registration/create_account_progress/account_create_progress_panel.dart:62 — catalyst_voices/apps/voices/lib/pages/registration/create_account_progress/account_create_progress_panel.dart:62-73 | catalyst_voices/apps/voices/lib/widgets/buttons/voices_buttons.dart:397-404 — 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) catalyst_voices/apps/voices/lib/pages/account/widgets/account_roles_tile.dart:193 — catalyst_voices/apps/voices/lib/pages/account/widgets/account_roles_tile.dart:193-200 | catalyst_voices/apps/voices/lib/pages/overall_spaces/brands_navigation.dart:163-170 — 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) catalyst_voices/apps/voices/lib/pages/account/widgets/account_roles_tile.dart:106 — catalyst_voices/apps/voices/lib/pages/account/widgets/account_roles_tile.dart:106-113 | catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/themes/widgets/voices_segmented_button_theme_data.dart:52-59 — 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) catalyst_voices/apps/voices/lib/pages/account/widgets/account_keychain_tile.dart:49 — catalyst_voices/apps/voices/lib/pages/account/widgets/account_keychain_tile.dart:49-56 | catalyst_voices/apps/voices/lib/pages/account/widgets/account_username_tile.dart:50-58 — 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) catalyst_voices/apps/voices/lib/pages/overall_spaces/brands_navigation.dart:52 — catalyst_voices/apps/voices/lib/pages/overall_spaces/brands_navigation.dart:52-59 | catalyst_voices/apps/voices/lib/widgets/headers/segment_header.dart:84-91 — 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) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_console_profiler.dart:81 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_console_profiler.dart:81-88 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_noop_profiler.dart:73-80 — 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 (12 lines × 2) · ×14
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:127 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:127-138 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:123-134 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart` and `catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:127` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/widgets/upload_seed_phrase/upload_seed_phrase_confirmation_dialog.dart:20 — catalyst_voices/apps/voices/lib/pages/registration/widgets/upload_seed_phrase/upload_seed_phrase_confirmation_dialog.dart:20-31 | catalyst_voices/utilities/uikit_example/lib/examples/voices_modals_example.dart:72-83 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:33 — catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:33-44 | catalyst_voices/apps/voices/lib/widgets/document_builder/document_object_property_builder.dart:152-163 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:142 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:142-153 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:136-147 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:142` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:183 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:183-194 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:236-247 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:183` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:205 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:205-216 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1060-1071 — 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 `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:205` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:800 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:800-811 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1129-1140 — 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 `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:800` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:300 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:300-311 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:307-318 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:300` 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) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_panel.dart:26 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_panel.dart:26-37 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart:28-39 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:198 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:198-209 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:24-35 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:447 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:447-458 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:194-205 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/widgets/buttons/voices_filled_button.dart:34 — catalyst_voices/apps/voices/lib/widgets/buttons/voices_filled_button.dart:34-45 | catalyst_voices/apps/voices/lib/widgets/buttons/voices_outlined_button.dart:34-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) catalyst_voices/apps/voices/lib/widgets/segments/segments_controller.dart:148 — catalyst_voices/apps/voices/lib/widgets/segments/segments_controller.dart:148-159 | catalyst_voices/apps/voices/lib/widgets/tiles/specialized/document_builder_section_tile_controller.dart:41-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:304 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:304-315 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_ref_dto.dart:27-38 — 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.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×14
  • Sync-over-async blocking catalyst_voices/scripts/version_web_assets/web_asset_versioner.dart:336 — `_versionPartFiles` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/artifacts_provider.dart:99 — `_getPrecompiledArtifacts` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/artifacts_provider.dart:184 — `_tryDownloadArtifacts` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_cmake.dart:19 — `build` is async and calls copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_gradle.dart:22 — `build` is async and calls createSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/build_pod.dart:20 — `build` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/precompile_binaries.dart:52 — `run` is async and calls createSync, readAsBytesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/artifacts_provider.dart:139 — `_getPrecompiledArtifacts` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/artifacts_provider.dart:211 — `_tryDownloadArtifacts` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_cmake.dart:19 — `build` is async and calls copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_gradle.dart:22 — `build` is async and calls createSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/build_pod.dart:20 — `build` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/precompile_binaries.dart:44 — `run` is async and calls createSync, readAsBytesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:41 — `fs.existsSync` in `getExtension` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
D30 · Dependency Vulnerabilities · Medium CVE · ×12
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×12
  • Edited copy of a member (15 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:370 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:370-384 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:340-354 — 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) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:300 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:300-314 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:307-321 — 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) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:360 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:360-374 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:398-412 — 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) catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:58 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:58-72 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:58-72 — 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) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/actions_tabs_group.dart:42 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/actions_tabs_group.dart:42-56 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_grouped_tag_selector_widget.dart:155-172 — 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) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_pagination.dart:17 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_pagination.dart:17-31 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_pagination.dart:17-31 — 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) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:54 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:54-73 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:278-292 — 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) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/campaign_model.dart:61 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/campaign_model.dart:61-75 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/campaign_model.dart:77-91 — 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) catalyst_voices/apps/voices/lib/widgets/modals/details/voices_details_dialog_header.dart:127 — catalyst_voices/apps/voices/lib/widgets/modals/details/voices_details_dialog_header.dart:127-141 | catalyst_voices/apps/voices/lib/widgets/modals/details/voices_details_dialog_header.dart:149-163 — 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) catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/instructions_panel.dart:13 — catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/instructions_panel.dart:13-27 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_result_panel.dart:14-28 — 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) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_edit_tile.dart:16 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_edit_tile.dart:16-30 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_stages_view_tile.dart:17-31 — 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) catalyst_voices/utilities/poc_local_storage/lib/password_entry_screen.dart:105 — catalyst_voices/utilities/poc_local_storage/lib/password_entry_screen.dart:105-120 | catalyst_voices/utilities/poc_local_storage/lib/protected_screen.dart:206-220 — 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 · Duplicated block (7 lines × 2) · ×11
  • Duplicated block (7 lines × 2) catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:56 — catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:56-62 | catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/campaign/campaign_info.dart:65-71 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/value/agreement_confirmation_widget.dart:95 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/agreement_confirmation_widget.dart:95-102 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/yes_no_choice_widget.dart:124-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/value/duration_in_months_widget.dart:69 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/duration_in_months_widget.dart:69-75 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:89-96 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:209 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:209-215 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:241-247 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/display_consent/display_consent_cubit.dart:107 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/display_consent/display_consent_cubit.dart:107-113 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:119-125 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:276 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:276-282 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:261-267 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/pages/category/widgets/category_description_expandable_list.dart:54 — catalyst_voices/apps/voices/lib/pages/category/widgets/category_description_expandable_list.dart:54-60 | catalyst_voices/apps/voices/lib/widgets/comment/proposal_comment_card.dart:124-130 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:45 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:45-51 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_tabs.dart:45-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.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/display_name_text_field.dart:11 — catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/display_name_text_field.dart:11-17 | catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/email_text_field.dart:11-17 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_theme_menu_tile.dart:12 — catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_theme_menu_tile.dart:12-18 | catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_timezone_menu_tile.dart:12-18 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:53 — catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:53-59 | catalyst_voices/apps/voices/lib/widgets/document_builder/document_object_property_builder.dart:172-178 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×10
  • Edited copy of a member (19 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:95 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:95-113 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:101-119 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:300 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:300-318 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:694-714 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:277 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:277-298 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:287-305 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:23 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:23-41 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:54-72 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:66 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:66-84 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart: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.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_state.dart:70 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_state.dart:70-88 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_state.dart:82-100 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/splash_panel.dart:11 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/splash_panel.dart:11-29 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/intro_panel.dart:12-33 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:121 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:121-139 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:156-174 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:140 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:140-164 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_template_factory.dart:7-25 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:17 — catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:17-35 | catalyst_voices/apps/voices/lib/pages/overall_spaces/space/workspace_overview.dart:16-34 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×10
  • Edited copy of a member (7 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/my_actions/my_actions_cubit.dart:85 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/my_actions/my_actions_cubit.dart:85-91 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:308-318 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_tile.dart:101 — catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_tile.dart:101-107 | catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_user_summary.dart:76-84 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:127 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:127-133 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:297-306 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:86 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:86-93 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:93-99 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/widgets/text_field/voices_num_field.dart:147 — catalyst_voices/apps/voices/lib/widgets/text_field/voices_num_field.dart:147-154 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:155-161 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document/document_comments_chip.dart:14 — catalyst_voices/apps/voices/lib/widgets/document/document_comments_chip.dart:14-20 | catalyst_voices/apps/voices/lib/widgets/document/document_tag_chip.dart:13-19 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/campaign/campaign_repository.dart:80 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/campaign/campaign_repository.dart:80-86 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:151-157 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/campaign/campaign_repository.dart:95 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/campaign/campaign_repository.dart:95-101 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:293-301 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/co_proposers_consent_page.dart:40 — catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/co_proposers_consent_page.dart:40-46 | catalyst_voices/apps/voices/lib/pages/co_proposers/widgets/add_collaborator/add_collaborator_dialog.dart:62-68 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) catalyst_voices/apps/voices/lib/widgets/app_bar/actions/finish_account_button.dart:14 — catalyst_voices/apps/voices/lib/widgets/app_bar/actions/finish_account_button.dart:14-20 | catalyst_voices/apps/voices/lib/widgets/app_bar/actions/get_started_button.dart:14-20 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×10
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart:108 — catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart:108-115 | catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart:120-127 — 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 `catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart: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.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:87 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:87-94 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:64-71 — 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 `catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:87` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:87 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:87-94 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:140-147 — 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 `catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_banner_widgets.dart:87` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:54 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:54-61 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:76-83 — 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 `catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:109 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:109-116 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:109-116 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `double?` in one and `int?` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 2) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:40 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:40-47 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:32-39 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart` and `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:40` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/widgets/tiles/specialized/document_builder_section_tile.dart:187 — catalyst_voices/apps/voices/lib/widgets/tiles/specialized/document_builder_section_tile.dart:187-194 | catalyst_voices/apps/voices/lib/widgets/voting/vote_button_menu.dart:286-293 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (8 lines × 2) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:156 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:156-163 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:51-58 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/account_create_step.dart:31 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/account_create_step.dart:31-38 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/wallet_link_stage.dart:21-28 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:27 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:27-34 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_drafts_data_source.dart:16-23 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D3 · God Classes · FunctionTooLong · ×9
  • FunctionTooLong: drift_worker.v1.copyProperties catalyst_voices/apps/voices/web/drift_worker.v1.js:1 — FunctionTooLong — copyProperties runs 13556 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13456 over it, 135.56× 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.
  • FunctionTooLong: drift_worker.v1.initializeDeferredHunk catalyst_voices/apps/voices/web/drift_worker.v1.js:52 — FunctionTooLong — initializeDeferredHunk runs 5152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5052 over it, 51.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.
  • FunctionTooLong: TxBuilder.TxBuilder utilities/wallet-tester/src/common/components/TxBuilder.tsx:48 — FunctionTooLong — TxBuilder runs 383 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 283 over it, 3.83× 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.
  • FunctionTooLong: catalyst_compression.__wbg_get_imports catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:444 — FunctionTooLong — __wbg_get_imports runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: catalyst_key_derivation.__wbg_get_imports catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:486 — FunctionTooLong — __wbg_get_imports runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: SignTxPanel.SignTxPanel utilities/wallet-tester/src/modules/SignTxPanel.tsx:36 — FunctionTooLong — SignTxPanel 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.
  • FunctionTooLong: CBOREditor.CBOREditor utilities/wallet-tester/src/common/components/CBOREditor.tsx:42 — FunctionTooLong — CBOREditor runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: buildUnsignedTx.buildUnsignedTx utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:34 — FunctionTooLong — buildUnsignedTx runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: WalletInfoSection.WalletInfoSection utilities/wallet-tester/src/modules/WalletInfoSection.tsx:28 — FunctionTooLong — WalletInfoSection runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× 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.
D3 · God Classes · FileTooLong · ×9
  • FileTooLong: web/drift_worker.v1.js catalyst_voices/apps/voices/web/drift_worker.v1.js — FileTooLong — 13556 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 13056 over it, 27.11× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: proposal_builder/proposal_builder_bloc.dart catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart — FileTooLong — 926 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ProposalBuilderBloc (25-1329). The bar is 500 significant lines; this is 426 over it, 1.85× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: dao/proposals_v2_dao.dart catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart — FileTooLong — 892 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: DriftProposalsV2Dao (70-1353). The bar is 500 significant lines; this is 392 over it, 1.78× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: v1/catalyst_key_derivation.js catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js — FileTooLong — 579 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: key_derivation_wasm_bindgen (1-912). The bar is 500 significant lines; this is 79 over it, 1.16× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: v1/catalyst_compression.js catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js — FileTooLong — 567 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: compression_wasm_bindgen (1-870). The bar is 500 significant lines; this is 67 over it, 1.13× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: theme_extensions/voices_color_scheme.dart catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/theme_extensions/voices_color_scheme.dart — FileTooLong — 564 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: VoicesColorScheme (9-583). The bar is 500 significant lines; this is 64 over it, 1.13× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: text_field/voices_text_field.dart catalyst_voices/apps/voices/lib/widgets/text_field/voices_text_field.dart — FileTooLong — 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: builders/transaction_builder.dart catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/transaction_builder.dart — FileTooLong — 514 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: TransactionBuilder (14-797). The bar is 500 significant lines; this is 14 over it, 1.03× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: proposal/proposal_repository.dart catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart — FileTooLong — 502 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: ProposalRepositoryImpl (164-828). The bar is 500 significant lines; this is 2 over it, 1.00× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
D3 · God Classes · TooManyMethods · ×9
  • TooManyMethods: ProposalBuilderBloc catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:21 — TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DriftProposalsV2Dao catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:24 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DocumentRepositoryImpl catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:215 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ProposalRepositoryImpl catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:164 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ProposalCubit catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:16 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DatabaseDocumentsDataSource catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:17 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: SecureStorageVault catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/vault/secure_storage_vault.dart:16 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: RegistrationCubit catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/registration_cubit.dart:19 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ProposalServiceImpl catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:170 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×9
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/not_found/not_found_page.dart:12 — catalyst_voices/apps/voices/lib/pages/not_found/not_found_page.dart:12-24 | catalyst_voices/apps/voices/lib/pages/proposal/proposal_error.dart:33-45 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/packages/libs/catalyst_key_derivation/rust/src/key_derivation/mod.rs:175 — catalyst_voices/packages/libs/catalyst_key_derivation/rust/src/key_derivation/mod.rs:175-187 | catalyst_voices/packages/libs/catalyst_key_derivation/rust/src/key_derivation/mod.rs:274-286 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:101 — catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:101-117 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:99-111 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:233 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:233-245 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:468-481 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:152 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:152-164 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:159-171 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/wallet_link/account_role_dialog.dart:107 — catalyst_voices/apps/voices/lib/pages/registration/wallet_link/account_role_dialog.dart:107-120 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/share_proposal_dialog.dart:32-44 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/page/workspace_page.dart:127 — catalyst_voices/apps/voices/lib/pages/workspace/page/workspace_page.dart:127-140 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart:384-396 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/secure_storage.dart:42 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/secure_storage.dart:42-54 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/local_storage.dart:46-58 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_account_display_name.dart:23 — catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_account_display_name.dart:23-35 | catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_tile.dart:160-172 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×9
  • Edited copy of a member (12 corresponding lines) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/address.dart:98 — catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/address.dart:98-109 | catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/certificate.dart:27-41 — 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) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_account_change_proxy.dart:140 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_account_change_proxy.dart:140-151 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_account_change_proxy.dart:205-216 — 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) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:34-45 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart:34-45 — 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) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:198 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:198-209 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:205-216 — 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) catalyst_voices/scripts/version_web_assets/ref_updater.dart:15 — catalyst_voices/scripts/version_web_assets/ref_updater.dart:15-26 | catalyst_voices/scripts/version_web_assets/ref_updater.dart:151-162 — 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) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_components.dart:143 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_components.dart:143-154 | catalyst_voices/apps/voices/lib/widgets/user/accounts_text.dart: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.
  • Edited copy of a member (12 corresponding lines) catalyst_voices/apps/voices/lib/widgets/indicators/voices_status_indicator.dart:75 — catalyst_voices/apps/voices/lib/widgets/indicators/voices_status_indicator.dart:75-86 | catalyst_voices/apps/voices/lib/widgets/indicators/voices_status_indicator.dart:140-151 — 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) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:211 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:211-222 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:37-49 — 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) catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/instructions_acknowledgements.dart:10 — catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/instructions_acknowledgements.dart:10-22 | catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_general_header.dart:107-118 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×9
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:19 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:19-28 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart:19-28 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/widgets/common/simple_tree_view.dart:203 — catalyst_voices/apps/voices/lib/widgets/common/simple_tree_view.dart:203-212 | catalyst_voices/apps/voices/lib/widgets/headers/segment_header.dart:99-110 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:217 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:217-226 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:163-172 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_collaborators.dart:139 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_collaborators.dart:139-148 | catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_phase_progress_card.dart:159-170 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs_divider.dart:8 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs_divider.dart:8-17 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_tabs_divider.dart:8-17 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/pages/discovery/sections/most_recent_proposals/widgets/recent_proposals.dart:73 — catalyst_voices/apps/voices/lib/pages/discovery/sections/most_recent_proposals/widgets/recent_proposals.dart:73-82 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_brief_card.dart:79-88 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:44 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:44-56 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:36-45 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart:90 — catalyst_voices/apps/voices/lib/app/view/app_mobile_access_restriction.dart:90-100 | catalyst_voices/apps/voices/lib/pages/campaign/stage/campaign_background.dart:54-63 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/space/user_proposal_overview/discovery_overview_proposal.dart:14 — catalyst_voices/apps/voices/lib/pages/overall_spaces/space/user_proposal_overview/discovery_overview_proposal.dart:14-23 | catalyst_voices/apps/voices/lib/pages/overall_spaces/space/user_proposal_overview/workspace_overview_proposal.dart:14-23 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×9
  • Duplicated block (14 lines × 2) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:14 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:14-27 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_details_tile.dart:14-27 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart` and `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_details_tile.dart` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:14` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:281 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:281-294 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:276-289 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:281` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:480 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:480-493 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:582-595 — 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 `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:480` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:157 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:157-170 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:124-137 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:157` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:423 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:423-436 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:418-431 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:423` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:77 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:77-90 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:193-206 — 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 `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:77` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `schema` to `DocumentIntegerSchema` in one and `DocumentNumberSchema` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:178 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:178-191 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:157-170 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:178` 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) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:34 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:34-47 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:174-187 — 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 `catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:34` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:243 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:243-256 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_drafts_data_source.dart:142-155 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D3 · God Classes · MethodTooLong · ×8
  • MethodTooLong: DocumentStringSchemaMapper.toModel catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:7 — MethodTooLong — toModel runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82× 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: VoicesColorScheme.copyWith catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/theme_extensions/voices_color_scheme.dart:255 — MethodTooLong — copyWith runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: VoicesColorScheme.lerp catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/theme_extensions/voices_color_scheme.dart:424 — MethodTooLong — lerp runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.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: Dependencies._registerBlocsWithDependencies catalyst_voices/apps/voices/lib/dependency/dependencies.dart:78 — MethodTooLong — _registerBlocsWithDependencies runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DocumentObjectSchemaMapper.toModel catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_object_schema_mapper.dart:7 — MethodTooLong — toModel runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14× 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: Dependencies._registerServices catalyst_voices/apps/voices/lib/dependency/dependencies.dart:367 — MethodTooLong — _registerServices runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DocumentValuePropertyBuilder.build catalyst_voices/apps/voices/lib/widgets/document_builder/document_value_property_builder.dart:19 — MethodTooLong — build runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DocumentListSchemaMapper.toModel catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:7 — MethodTooLong — toModel runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×8
  • Edited copy of a member (17 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:353 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:353-369 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:149-165 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/get_started/create_account_methods.dart:39 — catalyst_voices/apps/voices/lib/pages/registration/get_started/create_account_methods.dart:39-55 | catalyst_voices/apps/voices/lib/pages/registration/recover/recover_method_panel.dart:161-178 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/details/voices_align_title_header.dart:39 — catalyst_voices/apps/voices/lib/widgets/modals/details/voices_align_title_header.dart:39-55 | catalyst_voices/apps/voices/lib/widgets/modals/details/voices_details_dialog_header.dart:66-82 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/common/permission_mixin.dart:39 — catalyst_voices/apps/voices/lib/common/permission_mixin.dart:39-64 | catalyst_voices/apps/voices/lib/common/permission_mixin.dart:66-82 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:63 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:63-82 | catalyst_voices/apps/voices/lib/pages/error_page/error_page.dart:79-95 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_widgets.dart:53 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_widgets.dart:53-69 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_builder_dialog_widgets.dart:14-34 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:9 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:9-25 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:27-43 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/campaign_phase_aware.dart:25 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/campaign_phase_aware.dart:25-43 | catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/campaign_phase_aware.dart:45-61 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×8
  • Edited copy of a member (11 corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/cards/app_info_card.dart:35 — catalyst_voices/apps/voices/lib/pages/dev_tools/cards/app_info_card.dart:35-45 | catalyst_voices/apps/voices/lib/pages/dev_tools/cards/config_card.dart:38-51 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:54 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:54-64 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:66-76 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/apps/voices/lib/widgets/buttons/voices_buttons.dart:335 — catalyst_voices/apps/voices/lib/widgets/buttons/voices_buttons.dart:335-345 | catalyst_voices/apps/voices/lib/widgets/buttons/voices_buttons.dart:376-386 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/secure_storage.dart:18 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/secure_storage.dart:18-28 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/vault/secure_storage_vault.dart:100-112 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:207 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:207-217 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_drafts_data_source.dart:108-118 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/apps/voices/lib/pages/account/widgets/account_email_tile.dart:162 — catalyst_voices/apps/voices/lib/pages/account/widgets/account_email_tile.dart:162-172 | catalyst_voices/apps/voices/lib/pages/account/widgets/account_username_tile.dart:115-125 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal/tiles/proposal_document_segment_title.dart:12 — catalyst_voices/apps/voices/lib/pages/proposal/tiles/proposal_document_segment_title.dart:12-22 | catalyst_voices/apps/voices/lib/widgets/comment/proposal_comments_header_tile.dart:66-76 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart:45 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_panel.dart:45-55 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/roles_chooser_panel.dart:62-72 — 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 (10 lines × 2) · ×8
  • Duplicated block (10 lines × 2) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_tab.dart:24 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_tab.dart:24-33 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_tab.dart:24-33 — 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 `catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_tab.dart:24` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:195 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:195-204 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:90-99 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:195` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:372 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:372-381 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:342-351 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:372` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_reviews_service.dart:14 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_reviews_service.dart:14-23 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_status_service.dart:8-17 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_reviews_service.dart:14` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:319 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:319-328 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:117-126 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:319` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:592 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:592-601 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:648-657 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:592` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/forbidden_exception.dart:8 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/forbidden_exception.dart:8-17 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/unauthorized_exception.dart:8-17 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/not_found_exception.dart:8 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/not_found_exception.dart:8-17 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/resource_conflict_exception.dart:8-17 — 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.
R10 · Code Duplication · Duplicated block (10 lines × 2 locations) · ×8
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:3307 — catalyst_voices/apps/voices/web/drift_worker.v1.js:3307 · catalyst_voices/apps/voices/web/drift_worker.v1.js:3333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:3991 — catalyst_voices/apps/voices/web/drift_worker.v1.js:3991 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4045 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:6750 — catalyst_voices/apps/voices/web/drift_worker.v1.js:6750 · catalyst_voices/apps/voices/web/drift_worker.v1.js:6760 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:10264 — catalyst_voices/apps/voices/web/drift_worker.v1.js:10264 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11251 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:10317 — catalyst_voices/apps/voices/web/drift_worker.v1.js:10317 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11424 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:11524 — catalyst_voices/apps/voices/web/drift_worker.v1.js:11524 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11548 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:11921 — catalyst_voices/apps/voices/web/drift_worker.v1.js:11921 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11953 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:12381 — catalyst_voices/apps/voices/web/drift_worker.v1.js:12381 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12392 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 2 locations) · ×8
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:183 — catalyst_voices/apps/voices/web/drift_worker.v1.js:183 · catalyst_voices/apps/voices/web/drift_worker.v1.js:734 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:1401 — catalyst_voices/apps/voices/web/drift_worker.v1.js:1401 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1410 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:1954 — catalyst_voices/apps/voices/web/drift_worker.v1.js:1954 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2083 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:2062 — catalyst_voices/apps/voices/web/drift_worker.v1.js:2062 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2071 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:2895 — catalyst_voices/apps/voices/web/drift_worker.v1.js:2895 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2928 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:4480 — catalyst_voices/apps/voices/web/drift_worker.v1.js:4480 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4636 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:11399 — catalyst_voices/apps/voices/web/drift_worker.v1.js:11399 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11863 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (9 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:12630 — catalyst_voices/apps/voices/web/drift_worker.v1.js:12630 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12712 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×7
  • Edited copy of a member (18 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:183 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:183-200 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:236-253 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:153 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:153-170 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:120-137 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:17 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:17-34 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_tabs.dart:17-34 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/registration_conditions_rich_text.dart:22 — catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/registration_conditions_rich_text.dart:22-39 | catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/tos_and_privacy_policy_rich_text.dart:23-45 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/widgets/display_consent_list.dart:55 — catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/widgets/display_consent_list.dart:55-76 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_empty_state.dart:17-34 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/widgets/display_consent_proposal_info.dart:14 — catalyst_voices/apps/voices/lib/pages/actions/co_proposers_consent/widgets/display_consent_proposal_info.dart:14-37 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/create_new_proposal_dialog.dart:208-225 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) catalyst_voices/packages/libs/catalyst_cose/lib/src/cose_sign.dart:176 — catalyst_voices/packages/libs/catalyst_cose/lib/src/cose_sign.dart:176-197 | catalyst_voices/packages/libs/catalyst_cose/lib/src/cose_sign1.dart:155-172 — 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 · Duplicated block (13 lines × 2) · ×7
  • Duplicated block (13 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:60 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:60-72 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:60-72 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `oldWidget` to `NumberValueWidget` in one and `IntegerValueWidget` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:113 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:113-125 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:107-119 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:177 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:177-189 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:198-210 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:248 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:248-260 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting_ballot/voting_ballot_bloc.dart:155-167 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:262 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:262-274 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:247-259 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:327 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:327-339 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_ref_dto.dart:64-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:61 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:61-73 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:49-61 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart` and `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
X3 · Exception handling · Swallowed exception (empty catch) · ×7
  • Swallowed exception (empty catch) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart:367 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:11 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:500 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:2331 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:7717 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:7722 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) catalyst_voices/apps/voices/web/drift_worker.v1.js:11791 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
D2 · Cognitive Complexity · cat_gateway · ×6
  • cat_gateway::cardano::sync_subchain (cognitive 21) catalyst-gateway/bin/src/cardano/mod.rs:242 — cat_gateway::cardano::sync_subchain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cat_gateway::utils::schema::update_refs::traverse_and_update (cognitive 20) catalyst-gateway/bin/src/utils/schema.rs:40 — cat_gateway::utils::schema::update_refs::traverse_and_update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cat_gateway::db::index::session::retry_init (cognitive 17) catalyst-gateway/bin/src/db/index/session/mod.rs:400 — cat_gateway::db::index::session::retry_init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (6 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cat_gateway::service::api::cardano::cip36::filter::get_all_registrations (cognitive 17) catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:485 — cat_gateway::service::api::cardano::cip36::filter::get_all_registrations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 4 (8 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cat_gateway::service::api::cardano::staking::assets_get::build_stake_info (cognitive 17) catalyst-gateway/bin/src/service/api/cardano/staking/assets_get.rs:304 — cat_gateway::service::api::cardano::staking::assets_get::build_stake_info has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cat_gateway::service::api::cardano::cip36::filter::snapshot (cognitive 16) catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:392 — cat_gateway::service::api::cardano::cip36::filter::snapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (6 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D3 · God Classes · ClassTooLong · ×6
  • ClassTooLong: ProposalBuilderBloc catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:21 — ClassTooLong — 906 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 506 over it, 2.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: DriftProposalsV2Dao catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:24 — ClassTooLong — 818 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 418 over it, 2.05× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: VoicesColorScheme catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/theme_extensions/voices_color_scheme.dart:3 — ClassTooLong — 558 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 158 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ProposalCubit catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:16 — ClassTooLong — 480 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 80 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ProposalRepositoryImpl catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:164 — ClassTooLong — 422 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 22 over it, 1.06× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: TransactionBuilder catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/transaction_builder.dart:8 — ClassTooLong — 413 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 13 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×6
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/comment/submit_comment_error_dialog.dart:12 — catalyst_voices/apps/voices/lib/widgets/modals/comment/submit_comment_error_dialog.dart:12-35 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_error_dialog.dart:11-35 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:49 — catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:49-72 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:53-76 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/space/space_overview_header.dart:16 — catalyst_voices/apps/voices/lib/pages/overall_spaces/space/space_overview_header.dart:16-39 | catalyst_voices/apps/voices/lib/pages/spaces/drawer/space_header.dart:17-42 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:148 — catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:148-175 | catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:187-210 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:87 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:87-110 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:83-106 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) catalyst_voices/apps/voices/lib/widgets/rich_text/voices_rich_text.dart:450 — catalyst_voices/apps/voices/lib/widgets/rich_text/voices_rich_text.dart:450-473 | catalyst_voices/apps/voices/lib/widgets/rich_text/voices_rich_text.dart:509-534 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×6
  • Edited copy of a member (20 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:113 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:113-132 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:107-126 — 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) catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:170 — catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:170-196 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:166-185 — 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) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:263 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:263-283 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:353-372 — 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) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:119 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:119-138 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:115-134 — 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) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_collaborators.dart:85 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_collaborators.dart:85-107 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborators.dart:113-132 — 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) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:423 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:423-442 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:691-710 — 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 (21 corresponding lines) · ×6
  • Edited copy of a member (21 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:177 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:177-197 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:155-176 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign/stage/after_proposal_submission_page.dart:15 — catalyst_voices/apps/voices/lib/pages/campaign/stage/after_proposal_submission_page.dart:15-41 | catalyst_voices/apps/voices/lib/pages/campaign/stage/pre_proposal_submission_page.dart:18-38 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:83 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:83-103 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:128-148 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:313 — catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:313-333 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:353-375 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:112 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:112-132 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_card_widgets.dart:155-175 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) catalyst_voices/apps/voices/lib/pages/co_proposers/widgets/add_collaborator/add_collaborator_view.dart:23 — catalyst_voices/apps/voices/lib/pages/co_proposers/widgets/add_collaborator/add_collaborator_view.dart:23-43 | catalyst_voices/apps/voices/lib/pages/spaces/drawer/opportunities_drawer.dart:16-37 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×6
  • Edited copy of a member (16 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/detail_proposal.dart:34 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/detail_proposal.dart:34-50 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/proposal_model.dart:35-50 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:14 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:14-29 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_details_tile.dart:14-29 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_error.dart:14 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_error.dart:14-30 | catalyst_voices/apps/voices/lib/pages/workspace/page/workspace_error.dart:10-25 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:102 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:102-117 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:88-103 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_search.dart:17 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_search.dart:17-32 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_search.dart:17-35 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) catalyst_voices/apps/voices/lib/widgets/buttons/voices_responsive_button.dart:22 — catalyst_voices/apps/voices/lib/widgets/buttons/voices_responsive_button.dart:22-37 | catalyst_voices/apps/voices/lib/widgets/buttons/voices_responsive_button.dart:55-70 — 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 · Duplicated block (6 lines × 2) · ×6
  • Duplicated block (6 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:187 — catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:187-192 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/select_wallet/select_wallet_panel.dart:65-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:46 — catalyst_voices/apps/voices/lib/widgets/document_builder/document_list_property_builder.dart:46-51 | catalyst_voices/apps/voices/lib/widgets/document_builder/document_object_property_builder.dart:165-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:201 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:201-207 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/new_proposal/new_proposal_cubit.dart:234-239 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:322 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:322-328 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:329-334 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 2) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/strategies/exact_biggest_asset_selection_strategy.dart:12 — catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/strategies/exact_biggest_asset_selection_strategy.dart:12-17 | catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/strategies/greedy_selection_strategy.dart:12-17 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_cubit.dart:34 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_cubit.dart:34-39 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/session/session_cubit.dart:133-138 — 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.
D5 · Coupling · Off the main sequence · ×6
  • Off the main sequence: catalyst_voices_assets — catalyst_voices_assets: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
  • Off the main sequence: catalyst_voices_localization — catalyst_voices_localization: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: catalyst_compression (pub) — catalyst_compression (pub): abstractness 0.17, instability 0.00, distance 0.83 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: catalyst_cose — catalyst_cose: abstractness 0.21, instability 0.00, distance 0.79 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
  • Off the main sequence: catalyst_cardano_web — catalyst_cardano_web: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: catalyst_cardano_serialization — catalyst_cardano_serialization: abstractness 0.11, instability 0.15, distance 0.73 — zone of pain — concrete and depended on by 11 project(s), so it's rigid to change.
D4 · Code Duplication · Edited copies of one member (3 members, 7+ corresponding lines) · ×5
  • Edited copies of one member (3 members, 7+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/logging/logging_settings_storage.dart:20 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/logging/logging_settings_storage.dart:20-26 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/sync/app_meta_storage.dart:26-32 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/sync/sync_stats_storage.dart:28-34 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/account_completed/account_completed_panel.dart:207 — catalyst_voices/apps/voices/lib/pages/registration/account_completed/account_completed_panel.dart:207-216 | catalyst_voices/apps/voices/lib/pages/registration/create_account_progress/account_create_progress_panel.dart:100-106 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/account_details_panel.dart:254-264 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/cards/logs_card.dart:11 — catalyst_voices/apps/voices/lib/pages/dev_tools/cards/logs_card.dart:11-17 | catalyst_voices/apps/voices/lib/pages/dev_tools/widgets/logs_collect_toggle.dart:9-15 | catalyst_voices/apps/voices/lib/pages/dev_tools/widgets/logs_export_button.dart:8-14 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/responsive/responsive_child.dart:39 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/responsive/responsive_child.dart:39-45 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/responsive/responsive_child_builder.dart:56-62 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/responsive/responsive_padding.dart:50-59 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/account_completed/account_completed_panel.dart:88 — catalyst_voices/apps/voices/lib/pages/registration/account_completed/account_completed_panel.dart:88-97 | catalyst_voices/apps/voices/lib/widgets/comment/proposal_comment_pick_username_tile.dart:62-68 | catalyst_voices/apps/voices/lib/widgets/modals/upload/upload_actions.dart:52-58 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×5
  • Duplicated block (16 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:130 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:130-145 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:218-233 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:130` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:925 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:925-940 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1054-1069 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:925` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1306 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1306-1321 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1334-1349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:60 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:60-75 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:199-214 — 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 `catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:60` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69 — catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69-84 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:121-136 — 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 `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×5
  • Duplicated block (11 lines × 2) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:55 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart:55-65 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart:55-65 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/collaborator_display_consent_card.dart` and `catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/proposal_approval_card.dart` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:24 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:24-34 | catalyst_voices/apps/voices/lib/pages/voting/widgets/grid/voting_proposals_tabs.dart:24-34 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_tabs.dart:24` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/document_authors.dart:40 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/document_authors.dart:40-50 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/document_collaborators.dart:15-25 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_panel.dart:43 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_panel.dart:43-53 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_result_panel.dart:34-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/feature_flags/source/feature_flag_runtime_source.dart:15 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/feature_flags/source/feature_flag_runtime_source.dart:15-25 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/feature_flags/source/feature_flag_user_override_source.dart:17-27 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×5
  • Duplicated block (5 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:580 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:580-584 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:676-680 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:580` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:262 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:262-266 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting_ballot/voting_ballot_bloc.dart:169-173 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_cubit.dart:126 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_cubit.dart:126-130 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/discovery/discovery_cubit.dart:141-145 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `data` to `CampaignCategoryTotalAsk` in one and `CampaignTotalAsk` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:316 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:316-320 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:323-327 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: the declarations holding them bind `data` to `Map<ProposalsPageTab, int>` in one and `Map<VotingPageTab, int>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_state.dart:90 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_state.dart:90-94 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_state.dart:102-106 — 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.
D10 · Test Quality · Skipped test · ×4
  • Skipped test: (unnamed test) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:12 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:16 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:20 — Skipped — switched off by test.skip
  • Skipped test: Create Catalyst Keychain - ${walletConfig.extension.Name} catalyst_voices/apps/voices/e2e_tests/tests/onboarding.spec.ts:39 — Skipped — switched off by test.skip
D35 · Change Coupling · Change coupling · ×4
  • Change coupling: proposal_builder_bloc.dart ↔ document_repository.dart catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart` change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are `b826495d` feat(cat-voices): connect propsal action (#2144); `4e5e8f2e` feat(cat-voices): menu action (#2083); `964cf31b` feat(cat-voices): Workspace proposal card component (#1889) — run `git show` on any of them.
  • Change coupling: proposal.dart ↔ proposal_repository.dart catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/proposal.dart:1 — `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/proposal.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart` change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `ff21e6a8` feat(cat-voices): retriving non static data for campaign (#2382); `b826495d` feat(cat-voices): connect propsal action (#2144); `964cf31b` feat(cat-voices): Workspace proposal card component (#1889) — run `git show` on any of them.
  • Change coupling: registration_dialog.dart ↔ keychain_creation_cubit.dart catalyst_voices/apps/voices/lib/pages/registration/registration_dialog.dart:1 — `catalyst_voices/apps/voices/lib/pages/registration/registration_dialog.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/cubits/keychain_creation_cubit.dart` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `e1eae575` fix(cat-voices): recovering keychain while finishing registration (#2…; `6cc1c4fa` feat(cat-voices): filled buttons overlay and sp.words sequencer cells…; `66aa3c85` feat(cat-voices): Export proposal (#1927) — run `git show` on any of them.
  • Change coupling: proposals_cubit.dart ↔ proposal_repository.dart catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:1 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `84acd15d` feat(cat-voices): proposals ordering (#2643); `a9f83dde` fix(cat-voices): loading my proposals (#2473); `1894823d` feat(cat-voices): integrate proposals list - Part 2 (#2227) — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (41 corresponding lines) · ×4
  • Edited copy of a member (41 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:83 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:83-123 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:59-106 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (41 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:164 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:164-205 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:178-218 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (41 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:763 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:763-818 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1107-1147 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (41 corresponding lines) catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:18 — catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:18-59 | catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:65-105 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×4
  • Edited copy of a member (27 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:199 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:199-225 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart:178-205 — 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) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:232 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:232-262 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:220-246 — 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) catalyst_voices/packages/internal/catalyst_voices_dev/lib/src/catalyst_voices_models/document/document_data_factory.dart:7 — catalyst_voices/packages/internal/catalyst_voices_dev/lib/src/catalyst_voices_models/document/document_data_factory.dart:7-38 | catalyst_voices/packages/internal/catalyst_voices_dev/lib/src/catalyst_voices_models/document/document_data_factory.dart:40-66 — 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) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/detail_proposal.dart:6 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/detail_proposal.dart:6-32 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposal/proposal_model.dart:7-33 — 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 (30 corresponding lines) · ×4
  • Edited copy of a member (30 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:172 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:172-205 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:309-338 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:142 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:142-171 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:136-165 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:50 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:50-79 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:265-297 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:281 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:281-318 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:276-305 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×4
  • Edited copy of a member (23 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:34 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:34-56 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:34-56 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) catalyst_voices/apps/voices/lib/pages/discovery/sections/campaign_details/campaign_details.dart:160 — catalyst_voices/apps/voices/lib/pages/discovery/sections/campaign_details/campaign_details.dart:160-190 | catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_fund_info.dart:8-30 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:112 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:112-134 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_errors.dart:149-171 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:192 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:192-214 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:444-469 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×4
  • Duplicated block (20 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:240 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:240-259 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:236-255 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:240` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (20 lines × 2) catalyst_voices/apps/voices/lib/widgets/tooltips/voices_markdown_tooltip.dart:47 — catalyst_voices/apps/voices/lib/widgets/tooltips/voices_markdown_tooltip.dart:47-66 | catalyst_voices/apps/voices/lib/widgets/tooltips/voices_plain_tooltip.dart:43-62 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/widgets/tooltips/voices_markdown_tooltip.dart:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (20 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart:170 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart:170-189 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart:190-209 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (20 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:254 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:254-273 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:81-100 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:254` 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 (18 lines × 2) · ×4
  • Duplicated block (18 lines × 2) catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_category_header.dart:88 — catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_category_header.dart:88-105 | catalyst_voices/apps/voices/lib/widgets/cards/campaign_category_card.dart:85-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_category_header.dart:88` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:29 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:29-46 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:171-188 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:29` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:85 — catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:85-102 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:138-155 — 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 `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:85` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:103 — catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:103-120 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:157-174 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:103` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (15 lines × 2) · ×4
  • Duplicated block (15 lines × 2) catalyst_voices/apps/voices/lib/app/view/app_precache_image_assets.dart:104 — catalyst_voices/apps/voices/lib/app/view/app_precache_image_assets.dart:104-118 | catalyst_voices/apps/voices/lib/app/view/video_cache/app_video_precache.dart:26-40 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:29 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:29-43 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:27-41 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:29` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:121 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:121-135 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:128-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:121` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/registration_service.dart:296 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/registration_service.dart:296-310 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/registration_service.dart:419-433 — 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 `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/registration_service.dart:296` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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.
R10 · Code Duplication · Duplicated block (12 lines × 2 locations) · ×4
  • Duplicated block (12 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:4671 — catalyst_voices/apps/voices/web/drift_worker.v1.js:4671 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4764 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:9005 — catalyst_voices/apps/voices/web/drift_worker.v1.js:9005 · catalyst_voices/apps/voices/web/drift_worker.v1.js:9018 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2 locations) utilities/wallet-tester/src/common/components/TxBuilder.tsx:365 — utilities/wallet-tester/src/common/components/TxBuilder.tsx:365 · utilities/wallet-tester/src/common/components/TxBuilder.tsx:406 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
  • Duplicated block (12 lines × 2 locations) utilities/wallet-tester/src/modules/WalletActionsSection.tsx:23 — utilities/wallet-tester/src/modules/WalletActionsSection.tsx:23 · utilities/wallet-tester/src/modules/WalletInfoSection.tsx:66 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×3
  • Edited copy of a member (33 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal/tiles/proposal_comment_tile.dart:16 — catalyst_voices/apps/voices/lib/pages/proposal/tiles/proposal_comment_tile.dart:16-48 | catalyst_voices/apps/voices/lib/pages/proposal_builder/tiles/proposal_builder_comment_tile.dart:16-52 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_bottom_sheet_result.dart:15 — catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_bottom_sheet_result.dart:15-47 | catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_bottom_sheet_result.dart:53-86 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) catalyst_voices/apps/voices/lib/pages/spaces/drawer/opportunities_drawer.dart:43 — catalyst_voices/apps/voices/lib/pages/spaces/drawer/opportunities_drawer.dart:43-75 | catalyst_voices/apps/voices/lib/pages/spaces/drawer/opportunities_drawer.dart:172-204 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (29 corresponding lines) · ×3
  • Edited copy of a member (29 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:408 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:408-436 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:403-431 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:53 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:53-90 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:48-76 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:17 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/widgets/error_campaign_phase_aware.dart:17-45 | catalyst_voices/apps/voices/lib/pages/error_page/error_page.dart:24-55 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×3
  • Edited copy of a member (28 corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:190 — catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:190-218 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_limit_reached_dialog.dart:150-177 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:464 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:464-493 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:568-595 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:172 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:172-199 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:139-173 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×3
  • Edited copy of a member (25 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_tab.dart:18 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_tab.dart:18-42 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_tab.dart:18-42 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (25 corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:56 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:56-80 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:52-76 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (25 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_validation_snackbar.dart:142 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_validation_snackbar.dart:142-166 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_validation_snackbar.dart:180-208 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 17+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_cubit_cache.dart:31 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_cubit_cache.dart:31-47 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit_cache.dart:35-54 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc_cache.dart:37-55 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 17+ corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/user_proposals.dart:29 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/user_proposals.dart:29-45 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/user_proposals.dart:75-91 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/user_proposals.dart:113-132 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 17+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:56 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:56-72 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:130-146 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:172-188 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×3
  • Edited copy of a member (22 corresponding lines) catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:96 — catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:96-118 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:100-121 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:296 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:296-317 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:319-340 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1298 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1298-1329 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1331-1352 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 13+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 13+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_gateway_service.dart:23 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_gateway_service.dart:23-35 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_reviews_service.dart:13-25 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_status_service.dart:7-19 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 13+ corresponding lines) catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_tile.dart:180 — catalyst_voices/apps/voices/lib/pages/voting/widgets/voting_list/voting_list_tile.dart:180-192 | catalyst_voices/apps/voices/lib/widgets/tiles/menu_item_tile.dart:56-70 | catalyst_voices/apps/voices/lib/widgets/tiles/menu_segments_item_tile.dart:58-72 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 13+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:147 — catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/rbac_transaction_panel.dart:147-160 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/select_wallet/widget/wallets_empty_state.dart:13-25 | catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/select_wallet/widget/wallets_error_state.dart:13-25 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 13+ corresponding lines) · ×3
  • Edited copies of one member (4 members, 13+ corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:129 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:129-141 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_card_widgets.dart:13-25 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_card_widgets.dart:33-45 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_card_widgets.dart:51-63 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 13+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/widgets/registration_confirm_dialog.dart:10 — catalyst_voices/apps/voices/lib/pages/registration/widgets/registration_confirm_dialog.dart:10-22 | catalyst_voices/apps/voices/lib/pages/registration/widgets/registration_confirm_dialog.dart:28-40 | catalyst_voices/apps/voices/lib/pages/registration/widgets/registration_confirm_dialog.dart:87-99 | catalyst_voices/apps/voices/lib/pages/registration/widgets/registration_confirm_dialog.dart:105-117 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 13+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/my_actions/my_actions_cubit.dart:24 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/my_actions/my_actions_cubit.dart:24-36 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:104-119 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_approval/proposal_approval_cubit.dart:25-37 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:70-85 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×3
  • Duplicated block (17 lines × 2) catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_account_popup_catalyst_id.dart:9 — catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_account_popup_catalyst_id.dart:9-25 | catalyst_voices/apps/voices/lib/pages/spaces/drawer/session_account_drawer_catalyst_id.dart:9-25 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/spaces/appbar/account_popup/session_account_popup_catalyst_id.dart` and `catalyst_voices/apps/voices/lib/pages/spaces/drawer/session_account_drawer_catalyst_id.dart` 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.
  • Duplicated block (17 lines × 2) catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:40 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:40-56 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:40-56 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:40` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:43 — catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:43-59 | catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:89-105 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:43` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:86 — catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:86-94 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_num_field.dart:111-119 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:90-98 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (9 lines × 3) catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/my_action_card.dart:61 — catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/my_action_card.dart:61-69 | catalyst_voices/apps/voices/lib/pages/actions/actions/widgets/my_action_card.dart:79-87 | catalyst_voices/apps/voices/lib/pages/actions/widgets/actions_header_text.dart:9-17 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_validation_snackbar.dart:122 — catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_validation_snackbar.dart:122-130 | catalyst_voices/apps/voices/lib/pages/registration/incorrect_seed_phrase_dialog.dart:40-48 | catalyst_voices/apps/voices/lib/pages/registration/widgets/upload_seed_phrase/upload_seed_phrase_confirmation_dialog.dart:47-55 — 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.
D15 · Churn × Complexity Hotspots · Hotspot · ×2
  • Hotspot: catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs:57 — catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in cat_gateway::service::api::documents::put_document::endpoint at line 57. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2025-11-06..2026-02-04, the 90 days ending at the analysed commit. Reproduce with `git log --since='2025-11-06 13:42:13 +01:00' --until='2026-02-04 13:42:13 +01:00' --full-history --no-merges -- catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:43 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ProposalsCubit.changeFilters at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-11-06..2026-02-04, the 90 days ending at the analysed commit. Reproduce with `git log --since='2025-11-06 13:42:13 +01:00' --until='2026-02-04 13:42:13 +01:00' --full-history --no-merges -- catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D2 · Cognitive Complexity · iV (cognitive 17) · ×2
  • iV (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:1036 — iV has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • iV (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:10888 — iV has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (4 members, 50+ identical tokens) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:47 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:47-67 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:120-140 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:176-196 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_number_schema.dart:36-56 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:531 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:531-610 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:612-704 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:268-302 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:304-366 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×2
  • Edited copy of a member (35 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:239 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:239-273 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:66-100 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:240 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:240-275 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:236-270 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (32 corresponding lines) · ×2
  • Edited copy of a member (32 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:125 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:125-156 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:235-266 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (32 corresponding lines) catalyst_voices/apps/voices/lib/pages/category/widgets/card_information/create_proposal_card.dart:25 — catalyst_voices/apps/voices/lib/pages/category/widgets/card_information/create_proposal_card.dart:25-56 | catalyst_voices/apps/voices/lib/widgets/cards/category_proposals_details_card.dart:22-55 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×2
  • Edited copy of a member (26 corresponding lines) catalyst_voices/utilities/poc_local_storage/lib/home_screen.dart:55 — catalyst_voices/utilities/poc_local_storage/lib/home_screen.dart:55-89 | catalyst_voices/utilities/poc_local_storage/lib/protected_screen.dart:179-204 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (26 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_content.dart:21 — catalyst_voices/apps/voices/lib/pages/proposals/widgets/proposals_content.dart:21-46 | catalyst_voices/apps/voices/lib/pages/voting/widgets/content/voting_content.dart:21-46 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 16+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 16+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/document/validation/localized_document_validation_result.dart:67 — catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/document/validation/localized_document_validation_result.dart:67-82 | catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/document/validation/localized_document_validation_result.dart:111-129 | catalyst_voices/packages/internal/catalyst_voices_view_models/lib/src/document/validation/localized_document_validation_result.dart:203-220 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 16+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:275 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:275-292 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:254-269 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:76-93 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 22+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 22+ corresponding lines) catalyst_voices/apps/voices/lib/widgets/cards/campaign_category_card.dart:243 — catalyst_voices/apps/voices/lib/widgets/cards/campaign_category_card.dart:243-266 | catalyst_voices/apps/voices/lib/widgets/cards/proposal/proposal_brief_card.dart:160-182 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:123-144 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 22+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:75 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/comment/comment_repository.dart:75-98 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:392-413 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:562-587 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 15+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 15+ corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/document_lookup/widget/documents_data_list_view.dart:60 — catalyst_voices/apps/voices/lib/pages/dev_tools/document_lookup/widget/documents_data_list_view.dart:60-75 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_segments_navigation.dart:36-52 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/example/lib/main.dart:262-276 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 15+ corresponding lines) catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/campaign_phase_aware.dart:195 — catalyst_voices/apps/voices/lib/pages/campaign_phase_aware/campaign_phase_aware.dart:195-212 | catalyst_voices/apps/voices/lib/pages/proposal/proposal_loading.dart:8-22 | catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_loading.dart:10-24 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 9+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 9+ corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/document_currency_widget.dart:138 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/document_currency_widget.dart:138-147 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:108-116 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:108-116 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/simple_text_entry_widget.dart:146-156 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 9+ corresponding lines) catalyst_voices/apps/voices/lib/pages/dev_tools/widgets/document_ref_field.dart:95 — catalyst_voices/apps/voices/lib/pages/dev_tools/widgets/document_ref_field.dart:95-105 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_field.dart:74-84 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_date_time_field.dart:91-99 | catalyst_voices/apps/voices/lib/widgets/text_field/voices_time_field.dart:78-88 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 14+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 14+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/instructions_panel.dart:10 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/instructions_panel.dart:10-23 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_instructions_panel.dart:12-25 | catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_instructions_panel.dart:12-27 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_instructions_panel.dart:12-31 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 14+ corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:31 — catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:31-44 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:27-43 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_limit_reached_dialog.dart:39-54 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:24-38 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×2
  • Edited copy of a member (6 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/radio_button_selection_widget.dart:63 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/radio_button_selection_widget.dart:63-68 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_dropdown_selection_widget.dart:68-74 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/local_storage.dart:39 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/local_storage.dart:39-44 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/storage/secure_storage.dart:35-40 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×2
  • Edited copy of a member (4 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/campaign_filters.dart:23 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/campaign_filters.dart:23-27 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/proposals/proposals_filters_v2.dart:26-29 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (4 corresponding lines) catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_category_header.dart:111 — catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_category_header.dart:111-114 | catalyst_voices/apps/voices/lib/widgets/cards/campaign_category_card.dart:117-120 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (5 corresponding lines) · ×2
  • Edited copy of a member (5 corresponding lines) catalyst_voices/apps/voices/lib/notification/catalyst_messenger.dart:33 — catalyst_voices/apps/voices/lib/notification/catalyst_messenger.dart:33-37 | catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/themes/widgets/document_builder_theme.dart:27-31 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (5 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/signed_document/signed_document_manager_impl.dart:165 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/signed_document/signed_document_manager_impl.dart:165-169 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/crypto/bip32_ed25519_catalyst_private_key.dart:40-44 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×2
  • Duplicated block (30 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:214 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:214-243 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:267-296 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (30 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:500 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:500-529 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:237-266 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×2
  • Duplicated block (24 lines × 2) catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:74 — catalyst_voices/apps/voices/lib/pages/workspace/submission_closing_warning_dialog.dart:74-97 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/proposal_limit_reached_dialog.dart:64-87 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (24 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:18 — catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:18-41 | catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:65-88 — 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 `catalyst_voices/utilities/uikit_example/lib/examples/voices_menu_example.dart:18` 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 (23 lines × 2) · ×2
  • Duplicated block (23 lines × 2) catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:164 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:164-186 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart:178-200 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart` and `catalyst_voices/apps/voices/lib/widgets/modals/proposals/unlock_edit_proposal.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 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 `catalyst_voices/apps/voices/lib/widgets/modals/proposals/forget_proposal_dialog.dart:164` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (23 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:729 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:729-751 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:776-798 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×2
  • Duplicated block (19 lines × 2) catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:62 — catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:62-80 | catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart:58-76 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart` and `catalyst_voices/apps/voices/lib/pages/registration/recover/seed_phrase/unlock_password_panel.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/registration/create_keychain/stage/unlock_password_panel.dart:62` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/document_model.dart:129 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/document_model.dart:129-147 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/document_model.dart:226-244 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/document_model.dart:247` calls `firstWhereOrNull` and `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/document_model.dart:149` 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 (13–14 lines × 2) · ×2
  • Duplicated block (13–14 lines × 2) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:215 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:215-228 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:135-147 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:215` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–14 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:915 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:915-927 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1032-1045 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1032` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×2
  • Duplicated block (7 lines × 5) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:14 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:14-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart:14-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:14-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_number_schema_mapper.dart:14-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:15-21 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:13` calls `fromString` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:12` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 5) catalyst_voices/apps/voices/ios/Runner/AppDelegate.swift:6 — catalyst_voices/apps/voices/ios/Runner/AppDelegate.swift:6-12 | catalyst_voices/packages/libs/catalyst_compression/example/ios/Runner/AppDelegate.swift:6-12 | catalyst_voices/packages/libs/catalyst_key_derivation/example/ios/Runner/AppDelegate.swift:6-12 | catalyst_voices/utilities/poc_local_storage/ios/Runner/AppDelegate.swift:6-12 | catalyst_voices/utilities/remote_widgets/example/ios/Runner/AppDelegate.swift:6-12 — before extracting anything, compare `catalyst_voices/apps/voices/ios/Runner/AppDelegate.swift` and `catalyst_voices/utilities/remote_widgets/example/ios/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×2
  • Duplicated block (27 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_signal.dart:12 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_signal.dart:12-42 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_signal.dart:12-38 — 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 `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_signal.dart:12` 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 (27 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_list_tile_example.dart:83 — catalyst_voices/utilities/uikit_example/lib/examples/voices_list_tile_example.dart:83-109 | catalyst_voices/utilities/uikit_example/lib/examples/voices_navigation_example.dart:34-60 — 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 `catalyst_voices/utilities/uikit_example/lib/examples/voices_list_tile_example.dart:83` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×2
  • Duplicated block (8 lines × 4) catalyst_voices/apps/voices/lib/widgets/document_builder/value/language_code_widget.dart:70 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/language_code_widget.dart:70-77 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/radio_button_selection_widget.dart:54-61 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_dropdown_selection_widget.dart:59-66 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:88-95 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
  • Duplicated block (8 lines × 4) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/create_base_profile_stage.dart:18 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/create_base_profile_stage.dart:18-25 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/create_keychain_stage.dart:38-45 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/recover_seed_phrase_stage.dart:28-35 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/registration/steps/wallet_link_stage.dart:30-37 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. 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.
R10 · Code Duplication · Duplicated block (18 lines × 2 locations) · ×2
  • Duplicated block (18 lines × 2 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:268 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:268 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (18 lines × 2 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:236 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:236 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/assets/js/cardano_wallet_api.js:335 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (14 lines × 2 locations) · ×2
  • Duplicated block (14 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:3874 — catalyst_voices/apps/voices/web/drift_worker.v1.js:3874 · catalyst_voices/apps/voices/web/drift_worker.v1.js:11834 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (14 lines × 2 locations) utilities/wallet-tester/src/modules/SignDataPanel.tsx:3 — utilities/wallet-tester/src/modules/SignDataPanel.tsx:3 · utilities/wallet-tester/src/modules/SubmitTxPanel.tsx:3 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (13 lines × 2 locations) · ×2
  • Duplicated block (13 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:2168 — catalyst_voices/apps/voices/web/drift_worker.v1.js:2168 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2184 — all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour — the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator's options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents.
  • Duplicated block (13 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:12477 — catalyst_voices/apps/voices/web/drift_worker.v1.js:12477 · catalyst_voices/apps/voices/web/drift_worker.v1.js:12503 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (11 lines × 2 locations) · ×2
  • Duplicated block (11 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:6215 — catalyst_voices/apps/voices/web/drift_worker.v1.js:6215 · catalyst_voices/apps/voices/web/drift_worker.v1.js:6226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:7277 — catalyst_voices/apps/voices/web/drift_worker.v1.js:7277 · catalyst_voices/apps/voices/web/drift_worker.v1.js:7349 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R11 · Import Boundaries · Boundary violation [package · ×2
  • Boundary violation [package:third-party-deep-import] utilities/wallet-tester/src/common/helpers/diag2hex.ts:1 — utilities/wallet-tester/src/common/helpers/diag2hex.ts:1 imports cborg/lib/diagnostic, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] utilities/wallet-tester/src/common/helpers/hex2diag.ts:1 — utilities/wallet-tester/src/common/helpers/hex2diag.ts:1 imports cborg/lib/diagnostic, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
X2 · Cancellation propagation · Async function without AbortSignal · ×2
  • Async function without AbortSignal: __wbg_init catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:882 — `__wbg_init` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: __wbg_init catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:840 — `__wbg_init` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
AC3 · Page structure · Page without a main landmark · ×1
  • Page without a main landmark catalyst_voices/apps/voices/web/index.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D1 · Cyclomatic Complexity · T (cyclomatic 53) · ×1
  • T (cyclomatic 53) catalyst_voices/apps/voices/web/drift_worker.v1.js:11615 — T has cyclomatic complexity 53 (threshold 15). Most of this is not in the body itself: 1 of the 53 points is its own statement and the rest belongs to one function literal inside it that branches (line 11616). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · iz (cyclomatic 51) · ×1
  • iz (cyclomatic 51) catalyst_voices/apps/voices/web/drift_worker.v1.js:9918 — iz has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to one function literal inside it that branches (line 9919). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · a8 (cyclomatic 50) · ×1
  • a8 (cyclomatic 50) catalyst_voices/apps/voices/web/drift_worker.v1.js:1511 — a8 has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · bm (cyclomatic 50) · ×1
  • bm (cyclomatic 50) catalyst_voices/apps/voices/web/drift_worker.v1.js:2692 — bm has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · RawTransaction.validate (cyclomatic 44) · ×1
  • RawTransaction.validate (cyclomatic 44) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart:269 — RawTransaction.validate has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · iE (cyclomatic 40) · ×1
  • iE (cyclomatic 40) catalyst_voices/apps/voices/web/drift_worker.v1.js:10584 — iE has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · buildUnsignedTx.buildUnsignedTx (cyclomatic 36) · ×1
  • buildUnsignedTx.buildUnsignedTx (cyclomatic 36) utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:34 — buildUnsignedTx.buildUnsignedTx has cyclomatic complexity 36 (threshold 15). Of this number, 34 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · jp (cyclomatic 32) · ×1
  • jp (cyclomatic 32) catalyst_voices/apps/voices/web/drift_worker.v1.js:9037 — jp has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to one function literal inside it that branches (line 9038). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · kv (cyclomatic 31) · ×1
  • kv (cyclomatic 31) catalyst_voices/apps/voices/web/drift_worker.v1.js:10117 — kv has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to one function literal inside it that branches (line 10118). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · qY (cyclomatic 30) · ×1
  • qY (cyclomatic 30) catalyst_voices/apps/voices/web/drift_worker.v1.js:1360 — qY has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · jj (cyclomatic 30) · ×1
  • jj (cyclomatic 30) catalyst_voices/apps/voices/web/drift_worker.v1.js:8466 — jj has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · wN (cyclomatic 29) · ×1
  • wN (cyclomatic 29) catalyst_voices/apps/voices/web/drift_worker.v1.js:478 — wN has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · bR (cyclomatic 28) · ×1
  • bR (cyclomatic 28) catalyst_voices/apps/voices/web/drift_worker.v1.js:888 — bR has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · vM (cyclomatic 27) · ×1
  • vM (cyclomatic 27) catalyst_voices/apps/voices/web/drift_worker.v1.js:2906 — vM has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · h3 (cyclomatic 27) · ×1
  • h3 (cyclomatic 27) catalyst_voices/apps/voices/web/drift_worker.v1.js:8730 — h3 has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem (cyclomatic 26) · ×1
  • _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem (cyclomatic 26) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:213 — _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · _DocumentPropertyBuilderViewerState._buildValueProperty (cyclomatic 26) · ×1
  • _DocumentPropertyBuilderViewerState._buildValueProperty (cyclomatic 26) catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:134 — _DocumentPropertyBuilderViewerState._buildValueProperty has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · h1 (cyclomatic 26) · ×1
  • h1 (cyclomatic 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:8765 — h1 has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · eK (cyclomatic 26) · ×1
  • eK (cyclomatic 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:10520 — eK has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · ks (cyclomatic 25) · ×1
  • ks (cyclomatic 25) catalyst_voices/apps/voices/web/drift_worker.v1.js:7733 — ks has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · jc (cyclomatic 25) · ×1
  • jc (cyclomatic 25) catalyst_voices/apps/voices/web/drift_worker.v1.js:9199 — jc has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · cS (cyclomatic 24) · ×1
  • cS (cyclomatic 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:3842 — cS has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 3843). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · dz (cyclomatic 23) · ×1
  • dz (cyclomatic 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:1756 — dz has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · rh (cyclomatic 23) · ×1
  • rh (cyclomatic 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:2878 — rh has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · jS (cyclomatic 23) · ×1
  • jS (cyclomatic 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:7854 — jS has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · x9 (cyclomatic 22) · ×1
  • x9 (cyclomatic 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:3930 — x9 has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 3931). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · e0 (cyclomatic 22) · ×1
  • e0 (cyclomatic 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:3987 — e0 has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 3988). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · iD (cyclomatic 22) · ×1
  • iD (cyclomatic 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:10565 — iD has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · CBOREditor.CBOREditor (cyclomatic 21) · ×1
  • CBOREditor.CBOREditor (cyclomatic 21) utilities/wallet-tester/src/common/components/CBOREditor.tsx:42 — CBOREditor.CBOREditor has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 64, a function literal at line 92, handleRhsChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · rt (cyclomatic 21) · ×1
  • rt (cyclomatic 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:1554 — rt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · j (cyclomatic 21) · ×1
  • j (cyclomatic 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:8163 — j has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · j8 (cyclomatic 21) · ×1
  • j8 (cyclomatic 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:9568 — j8 has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 9569). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · iI (cyclomatic 21) · ×1
  • iI (cyclomatic 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:10505 — iI has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · RegistrationCubit._nextStep (cyclomatic 20) · ×1
  • RegistrationCubit._nextStep (cyclomatic 20) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/registration_cubit.dart:410 — RegistrationCubit._nextStep has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · wr (cyclomatic 20) · ×1
  • wr (cyclomatic 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:2645 — wr has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · qH (cyclomatic 20) · ×1
  • qH (cyclomatic 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:2773 — qH has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · qD (cyclomatic 20) · ×1
  • qD (cyclomatic 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:3068 — qD has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · cE (cyclomatic 20) · ×1
  • cE (cyclomatic 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:10628 — cE has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · we (cyclomatic 19) · ×1
  • we (cyclomatic 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:1005 — we has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · rg (cyclomatic 19) · ×1
  • rg (cyclomatic 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:2993 — rg has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · _SegmentsListView.build (cyclomatic 18) · ×1
  • _SegmentsListView.build (cyclomatic 18) catalyst_voices/apps/voices/lib/pages/proposal/proposal_content.dart:91 — _SegmentsListView.build has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ProposalsCubit.changeFilters (cyclomatic 18) · ×1
  • ProposalsCubit.changeFilters (cyclomatic 18) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:43 — ProposalsCubit.changeFilters has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · cat_gateway · ×1
  • cat_gateway::service::api::documents::put_document::endpoint (cyclomatic 18) catalyst-gateway/bin/src/service/api/documents/put_document/mod.rs:57 — cat_gateway::service::api::documents::put_document::endpoint has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · catalyst_compression.debugString (cyclomatic 18) · ×1
  • catalyst_compression.debugString (cyclomatic 18) catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:148 — catalyst_compression.debugString has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · catalyst_key_derivation.debugString (cyclomatic 18) · ×1
  • catalyst_key_derivation.debugString (cyclomatic 18) catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:148 — catalyst_key_derivation.debugString has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · rs (cyclomatic 18) · ×1
  • rs (cyclomatic 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:1134 — rs has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · jm (cyclomatic 18) · ×1
  • jm (cyclomatic 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:10326 — jm has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 10327). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · RegistrationCubit._previousStep (cyclomatic 17) · ×1
  • RegistrationCubit._previousStep (cyclomatic 17) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/registration_cubit.dart:518 — RegistrationCubit._previousStep has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · oj (cyclomatic 17) · ×1
  • oj (cyclomatic 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:55 — oj has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · aK (cyclomatic 17) · ×1
  • aK (cyclomatic 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:1163 — aK has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · is (cyclomatic 17) · ×1
  • is (cyclomatic 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:7806 — is has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · cg (cyclomatic 17) · ×1
  • cg (cyclomatic 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:8323 — cg has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · iH (cyclomatic 17) · ×1
  • iH (cyclomatic 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:10286 — iH has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 10287). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · UserServiceImpl.updateAccount (cyclomatic 16) · ×1
  • UserServiceImpl.updateAccount (cyclomatic 16) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:378 — UserServiceImpl.updateAccount has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · $1 (cyclomatic 16) · ×1
  • $1 (cyclomatic 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:8551 — $1 has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · ii (cyclomatic 16) · ×1
  • ii (cyclomatic 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:9239 — ii has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · $0 (cyclomatic 16) · ×1
  • $0 (cyclomatic 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:9603 — $0 has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 9604). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · iT (cyclomatic 16) · ×1
  • iT (cyclomatic 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:11755 — iT has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 11756). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file's highest cyclomatic complexity: qa (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score. This file is where this pass's cyclomatic complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 45 of the 58 methods over the threshold — including the worst — and 451 of the 552 points over it (82%), 15.6× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 29). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D10 · Test Quality · No assertions · ×1
  • No assertions: Get wallet details for catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/tests/wallets.spec.ts:29 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D12 · Dependency Hygiene · No Gemfile.lock committed by an application · ×1
  • No Gemfile.lock committed by an application — This repository declares 1 gem(s) across 1 Bundler manifest(s) and ships no application `.gemspec`, so it is an APPLICATION — but no `Gemfile.lock` is committed. Nothing records the versions a working build resolved to, so `bundle install` re-resolves against whatever rubygems.org serves today and two deploys of this commit are not guaranteed to be the same deploy. Run `bundle install` and commit the resulting `Gemfile.lock`. (A published GEM correctly omits its lock, which is why this is asked only of a repository that ships no .gemspec.)
D17 · Explicit Debt · FixmeComment · ×1
  • FixmeComment catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/witness.dart:17 — // FIXME(ilap): implement proper redeemers type. — 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.
D2 · Cognitive Complexity · bm (cognitive 122) · ×1
  • bm (cognitive 122) catalyst_voices/apps/voices/web/drift_worker.v1.js:2692 — bm has cognitive complexity 122 (threshold 15). Drivers by points: if/else 39 (103 pts), ternaries 6 (12 pts), boolean chains 7 (nesting depth added 70). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · RawTransaction.validate (cognitive 98) · ×1
  • RawTransaction.validate (cognitive 98) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart:269 — RawTransaction.validate has cognitive complexity 98 (threshold 15). Drivers by points: if/else 26 (81 pts), boolean chains 16, error handling 1 (nesting depth added 55). To reduce it, split the body into named stages: move each independent 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 · ks (cognitive 78) · ×1
  • ks (cognitive 78) catalyst_voices/apps/voices/web/drift_worker.v1.js:7733 — ks has cognitive complexity 78 (threshold 15). Drivers by points: if/else 24 (62 pts), ternaries 3 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · W (cognitive 77) · ×1
  • W (cognitive 77) catalyst_voices/apps/voices/web/drift_worker.v1.js:8360 — W has cognitive complexity 77 (threshold 15). Drivers by points: if/else 13 (66 pts), ternaries 1 (11 pts) (nesting depth added 63). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iE (cognitive 70) · ×1
  • iE (cognitive 70) catalyst_voices/apps/voices/web/drift_worker.v1.js:10584 — iE has cognitive complexity 70 (threshold 15). Drivers by points: if/else 26 (56 pts), boolean chains 9, ternaries 2 (3 pts), loops 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · a8 (cognitive 65) · ×1
  • a8 (cognitive 65) catalyst_voices/apps/voices/web/drift_worker.v1.js:1511 — a8 has cognitive complexity 65 (threshold 15). Drivers by points: if/else 36 (50 pts), boolean chains 9, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jS (cognitive 58) · ×1
  • jS (cognitive 58) catalyst_voices/apps/voices/web/drift_worker.v1.js:7854 — jS has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (38 pts), loops 4 (10 pts), match/switch 1 (5 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · dz (cognitive 55) · ×1
  • dz (cognitive 55) catalyst_voices/apps/voices/web/drift_worker.v1.js:1756 — dz has cognitive complexity 55 (threshold 15). Drivers by points: if/else 22 (48 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · vM (cognitive 54) · ×1
  • vM (cognitive 54) catalyst_voices/apps/voices/web/drift_worker.v1.js:2906 — vM has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (47 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · buildUnsignedTx.buildUnsignedTx (cognitive 51) · ×1
  • buildUnsignedTx.buildUnsignedTx (cognitive 51) utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:34 — buildUnsignedTx.buildUnsignedTx has cognitive complexity 51 (threshold 15). Drivers by points: if/else 28 (40 pts), loops 6, boolean chains 3, ternaries 1 (2 pts) (nesting depth added 13). Of this number, 49 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent 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 · cg (cognitive 51) · ×1
  • cg (cognitive 51) catalyst_voices/apps/voices/web/drift_worker.v1.js:8323 — cg has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 5 (20 pts), boolean chains 3 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · j (cognitive 47) · ×1
  • j (cognitive 47) catalyst_voices/apps/voices/web/drift_worker.v1.js:8163 — j has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (35 pts), ternaries 3 (5 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · rh (cognitive 45) · ×1
  • rh (cognitive 45) catalyst_voices/apps/voices/web/drift_worker.v1.js:2878 — rh has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (38 pts), boolean chains 4, ternaries 2, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iz (cognitive 45) · ×1
  • iz (cognitive 45) catalyst_voices/apps/voices/web/drift_worker.v1.js:9918 — iz has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 7 (21 pts), if/else 7 (17 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 27). None of this is in the body itself: all 45 points belong to one function literal inside it that branches (line 9919). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · wr (cognitive 44) · ×1
  • wr (cognitive 44) catalyst_voices/apps/voices/web/drift_worker.v1.js:2645 — wr has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · rg (cognitive 44) · ×1
  • rg (cognitive 44) catalyst_voices/apps/voices/web/drift_worker.v1.js:2993 — rg has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (39 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jj (cognitive 43) · ×1
  • jj (cognitive 43) catalyst_voices/apps/voices/web/drift_worker.v1.js:8466 — jj has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 7, loops 4 (6 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · h3 (cognitive 42) · ×1
  • h3 (cognitive 42) catalyst_voices/apps/voices/web/drift_worker.v1.js:8730 — h3 has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 6 (16 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 15). 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. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · wN (cognitive 38) · ×1
  • wN (cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:478 — wN has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 11, ternaries 2 (4 pts), match/switch 1 (3 pts), error handling 1 (2 pts) (nesting depth added 11). Of this number, 36 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · rt (cognitive 38) · ×1
  • rt (cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:1554 — rt has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · qH (cognitive 38) · ×1
  • qH (cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:2773 — qH has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (32 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · is (cognitive 38) · ×1
  • is (cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:7806 — is has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 4, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jc (cognitive 36) · ×1
  • jc (cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:9199 — jc has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 4 (9 pts), ternaries 3 (7 pts), boolean chains 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iI (cognitive 36) · ×1
  • iI (cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:10505 — iI has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · cE (cognitive 36) · ×1
  • cE (cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:10628 — cE has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · qD (cognitive 34) · ×1
  • qD (cognitive 34) catalyst_voices/apps/voices/web/drift_worker.v1.js:3068 — qD has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · h1 (cognitive 34) · ×1
  • h1 (cognitive 34) catalyst_voices/apps/voices/web/drift_worker.v1.js:8765 — h1 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 5 (12 pts), ternaries 2 (7 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · eK (cognitive 31) · ×1
  • eK (cognitive 31) catalyst_voices/apps/voices/web/drift_worker.v1.js:10520 — eK has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 10, ternaries 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · SyncTask · ×1
  • SyncTask::run (cognitive 29) catalyst-gateway/bin/src/cardano/mod.rs:490 — SyncTask::run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LocalCatGateway._populateIndex (cognitive 28) · ×1
  • LocalCatGateway._populateIndex (cognitive 28) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/local/local_cat_gateway.dart:296 — LocalCatGateway._populateIndex has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 5 (12 pts), ternaries 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · rs (cognitive 28) · ×1
  • rs (cognitive 28) catalyst_voices/apps/voices/web/drift_worker.v1.js:1134 — rs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 5 (9 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · k (cognitive 28) · ×1
  • k (cognitive 28) catalyst_voices/apps/voices/web/drift_worker.v1.js:6123 — k has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (22 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · rb (cognitive 26) · ×1
  • rb (cognitive 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:2860 — rb has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (10 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ph (cognitive 26) · ×1
  • ph (cognitive 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:3051 — ph has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iD (cognitive 26) · ×1
  • iD (cognitive 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:10565 — iD has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, error handling 1, ternaries 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. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · bH (cognitive 26) · ×1
  • bH (cognitive 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:10735 — bH has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · we (cognitive 25) · ×1
  • we (cognitive 25) catalyst_voices/apps/voices/web/drift_worker.v1.js:1005 — we has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 3 (5 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · k (cognitive 25) · ×1
  • k (cognitive 25) catalyst_voices/apps/voices/web/drift_worker.v1.js:6373 — k has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · catalyst_compression.debugString (cognitive 24) · ×1
  • catalyst_compression.debugString (cognitive 24) catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:148 — catalyst_compression.debugString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · catalyst_key_derivation.debugString (cognitive 24) · ×1
  • catalyst_key_derivation.debugString (cognitive 24) catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:148 — catalyst_key_derivation.debugString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CBOREditor.CBOREditor (cognitive 24) · ×1
  • CBOREditor.CBOREditor (cognitive 24) utilities/wallet-tester/src/common/components/CBOREditor.tsx:42 — CBOREditor.CBOREditor has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 10 (11 pts), if/else 6, error handling 3 (5 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 64, a function literal at line 92, handleRhsChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · oj (cognitive 24) · ×1
  • oj (cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:55 — oj has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (24 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · bR (cognitive 24) · ×1
  • bR (cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:888 — bR has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · vK (cognitive 24) · ×1
  • vK (cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:2839 — vK has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · kH (cognitive 24) · ×1
  • kH (cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:9739 — kH has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · kv (cognitive 24) · ×1
  • kv (cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:10117 — kv has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (6 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 13). None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 10118). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ArbManager.process (cognitive 23) · ×1
  • ArbManager.process (cognitive 23) catalyst_voices/packages/internal/catalyst_voices_localization/lib/src/manage_l10n.dart:48 — ArbManager.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WildcardPathHandler.matches (cognitive 23) · ×1
  • WildcardPathHandler.matches (cognitive 23) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/common/wildcard_path_handler.dart:53 — WildcardPathHandler.matches has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · x9 (cognitive 23) · ×1
  • x9 (cognitive 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:3930 — x9 has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (8 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 14). None of this is in the body itself: all 23 points belong to one function literal inside it that branches (line 3931). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · dw (cognitive 23) · ×1
  • dw (cognitive 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:6956 — dw has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · gfN (cognitive 23) · ×1
  • gfN (cognitive 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:8249 — gfN has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · _InputSelector._selectInputsToSatisfyOutputs (cognitive 22) · ×1
  • _InputSelector._selectInputsToSatisfyOutputs (cognitive 22) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/input_builder.dart:357 — _InputSelector._selectInputsToSatisfyOutputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TxoInsertQuery · ×1
  • TxoInsertQuery::index (cognitive 22) catalyst-gateway/bin/src/db/index/block/txo/mod.rs:141 — TxoInsertQuery::index has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · vx (cognitive 22) · ×1
  • vx (cognitive 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:1248 — vx has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · qX (cognitive 22) · ×1
  • qX (cognitive 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:1435 — qX has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · pg (cognitive 22) · ×1
  • pg (cognitive 22) catalyst_voices/apps/voices/web/drift_worker.v1.js:3025 — pg has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · UserServiceImpl.updateAccount (cognitive 21) · ×1
  • UserServiceImpl.updateAccount (cognitive 21) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:378 — UserServiceImpl.updateAccount has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RawTransaction.from (cognitive 21) · ×1
  • RawTransaction.from (cognitive 21) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart:25 — RawTransaction.from has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · $1 (cognitive 21) · ×1
  • $1 (cognitive 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:8551 — $1 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ku (cognitive 21) · ×1
  • ku (cognitive 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:9715 — ku has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 1 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 13). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 9716). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · kp (cognitive 21) · ×1
  • kp (cognitive 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:10484 — kp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · eF (cognitive 21) · ×1
  • eF (cognitive 21) catalyst_voices/apps/voices/web/drift_worker.v1.js:10686 — eF has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · aq (cognitive 20) · ×1
  • aq (cognitive 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:5580 — aq has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ii (cognitive 20) · ×1
  • ii (cognitive 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:9239 — ii has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, ternaries 4 (8 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ex (cognitive 20) · ×1
  • ex (cognitive 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:12220 — ex has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · $0 (cognitive 20) · ×1
  • $0 (cognitive 20) catalyst_voices/apps/voices/web/drift_worker.v1.js:12686 — $0 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · qh (cognitive 19) · ×1
  • qh (cognitive 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:349 — qh has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · xx (cognitive 19) · ×1
  • xx (cognitive 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:612 — xx has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (19 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · oY (cognitive 19) · ×1
  • oY (cognitive 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:3742 — oY has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jp (cognitive 19) · ×1
  • jp (cognitive 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:9037 — jp has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), match/switch 2 (5 pts), if/else 2 (4 pts), loops 1 (nesting depth added 11). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 9038). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ProposalBuilderBloc._requestSubmitProposal (cognitive 18) · ×1
  • ProposalBuilderBloc._requestSubmitProposal (cognitive 18) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:943 — ProposalBuilderBloc._requestSubmitProposal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · catalyst_compression.__wbg_load (cognitive 18) · ×1
  • catalyst_compression.__wbg_load (cognitive 18) catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:411 — catalyst_compression.__wbg_load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · catalyst_key_derivation.__wbg_load (cognitive 18) · ×1
  • catalyst_key_derivation.__wbg_load (cognitive 18) catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:453 — catalyst_key_derivation.__wbg_load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · aK (cognitive 18) · ×1
  • aK (cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:1163 — aK has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, ternaries 2 (4 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · fn (cognitive 18) · ×1
  • fn (cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:8309 — fn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · j8 (cognitive 18) · ×1
  • j8 (cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:9568 — j8 has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 9569). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jV (cognitive 18) · ×1
  • jV (cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:9798 — jV has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · jm (cognitive 18) · ×1
  • jm (cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:10326 — jm has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (6 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 10327). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · _SegmentsListView.build (cognitive 17) · ×1
  • _SegmentsListView.build (cognitive 17) catalyst_voices/apps/voices/lib/pages/proposal/proposal_content.dart:91 — _SegmentsListView.build has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 5, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · InputBuilder.buildAssetGroups (cognitive 17) · ×1
  • InputBuilder.buildAssetGroups (cognitive 17) catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/input_builder.dart:28 — InputBuilder.buildAssetGroups has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem (cognitive 17) · ×1
  • _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem (cognitive 17) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:213 — _DocumentPropertyReadBuilderState._mapDocumentPropertyToListItem has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (16 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · _DocumentPropertyBuilderViewerState._buildValueProperty (cognitive 17) · ×1
  • _DocumentPropertyBuilderViewerState._buildValueProperty (cognitive 17) catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:134 — _DocumentPropertyBuilderViewerState._buildValueProperty has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (16 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · cS (cognitive 17) · ×1
  • cS (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:3842 — cS has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 2 (6 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 3843). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ho (cognitive 17) · ×1
  • ho (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:8441 — ho has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 5 (6 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ij (cognitive 17) · ×1
  • ij (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:9284 — ij has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (8 pts), loops 2 (5 pts), if/else 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iH (cognitive 17) · ×1
  • iH (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:10286 — iH has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 10287). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · $0 (cognitive 17) · ×1
  • $0 (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:10928 — $0 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · T (cognitive 17) · ×1
  • T (cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:11615 — T has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 9). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 11616). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · cN (cognitive 16) · ×1
  • cN (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:3017 — cN has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · e0 (cognitive 16) · ×1
  • e0 (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:3987 — e0 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 3988). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · hg (cognitive 16) · ×1
  • hg (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:8584 — hg has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · e8 (cognitive 16) · ×1
  • e8 (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:9316 — e8 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · $0 (cognitive 16) · ×1
  • $0 (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:9603 — $0 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 9604). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · bH (cognitive 16) · ×1
  • bH (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:10761 — bH has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · iT (cognitive 16) · ×1
  • iT (cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:11755 — iT has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 11756). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This file is where this pass's cognitive complexity CONCENTRATES: catalyst_voices/apps/voices/web/drift_worker.v1.js holds 77 of the 103 methods over the threshold — including the worst — and 1187 of the 1437 points over it (83%), 13.3× the next-largest file (catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart at 89). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×1
  • REDACTED
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: proposal_builder_state.dart → dependencies.dart, document_repository.dart, proposal_service.dart catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_state.dart — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_state.dart` changes together with 3 other files — `catalyst_voices/apps/voices/lib/dependency/dependencies.dart`, `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart`, `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (9 members, 50+ identical tokens) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:21 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:21-42 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:80-101 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:122-143 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:164-185 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:223-244 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:304-325 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:357-378 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:454-475 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:502-523 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:7 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:7-70 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart:7-86 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:7-119 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_number_schema_mapper.dart:7-49 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_object_schema_mapper.dart:7-137 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:7-204 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:18 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:18-39 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:71-92 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:110-131 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:245-266 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:352-373 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Edited copy of a member (93 corresponding lines) · ×1
  • Edited copy of a member (93 corresponding lines) catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:213 — catalyst_voices/apps/voices/lib/widgets/document/document_property_read_builder.dart:213-305 | catalyst_voices/apps/voices/lib/widgets/document_builder/viewer/document_property_builder_viewer.dart:134-233 — These two members are one piece of code written twice and then edited apart: 93 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (59 corresponding lines) · ×1
  • Edited copy of a member (59 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:192 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:192-250 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1046-1105 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (51 corresponding lines) · ×1
  • Edited copy of a member (51 corresponding lines) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:133 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:133-183 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:93-151 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (43 corresponding lines) · ×1
  • Edited copy of a member (43 corresponding lines) catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:29 — catalyst_voices/apps/voices/lib/widgets/modals/proposals/publish_proposal_iteration_dialog.dart:29-71 | catalyst_voices/apps/voices/lib/widgets/modals/proposals/submit_proposal_for_review_dialog.dart:171-218 — 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, 44+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 44+ corresponding lines) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:12 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:12-65 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:77-126 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:138-181 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 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 (42 corresponding lines) · ×1
  • Edited copy of a member (42 corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/brands_navigation.dart:80 — catalyst_voices/apps/voices/lib/pages/overall_spaces/brands_navigation.dart:80-127 | catalyst_voices/apps/voices/lib/widgets/common/simple_tree_view.dart:121-162 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×1
  • Edited copy of a member (36 corresponding lines) catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:115 — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:115-150 | catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart:121-157 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:24 — catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_decide_card.dart:24-57 | catalyst_voices/apps/voices/lib/pages/actions/proposal_approval/widgets/proposal_approval_final_card.dart:21-51 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 19+ corresponding lines) catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:8 — catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:8-27 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:31-50 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:54-72 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_collaborator_dialog.dart:76-94 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 24+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 24+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:24 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:24-47 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:49-75 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:164-187 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_sentry_profiler.dart:189-214 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 18+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:54 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:54-74 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:76-97 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:139-160 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:162-183 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart:267-284 — These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 12+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 12+ corresponding lines) catalyst_voices/apps/voices/lib/pages/account/pending_email_change_dialog.dart:10 — catalyst_voices/apps/voices/lib/pages/account/pending_email_change_dialog.dart:10-22 | catalyst_voices/apps/voices/lib/pages/account/verification_email_send_dialog.dart:10-23 | catalyst_voices/apps/voices/lib/pages/account/verification_required_dialog.dart:10-21 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 21+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 21+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_developer_profiler.dart:75 — catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_developer_profiler.dart:75-95 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_developer_profiler.dart:97-119 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_developer_profiler.dart:180-200 | catalyst_voices/packages/internal/catalyst_voices_shared/lib/src/profiler/catalyst_developer_profiler.dart:202-223 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (7 members, 22+ corresponding lines) · ×1
  • Edited copies of one member (7 members, 22+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:32 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:32-53 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:161-182 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:200-221 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:239-260 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:278-299 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_list_schema.dart:317-338 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:295-317 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 19+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:152 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:152-170 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:207-225 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:227-245 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:247-265 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:267-287 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_client.dart:289-307 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 20+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:330 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:330-351 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:128-147 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:216-235 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 20+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:477 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:477-498 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:53-74 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_documents_data_source.dart:219-241 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_drafts_data_source.dart:43-62 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/database_drafts_data_source.dart:120-140 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 16+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 16+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_boolean_schema.dart:18 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_boolean_schema.dart:18-36 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_boolean_schema.dart:98-116 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_boolean_schema.dart:134-149 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:265-283 — These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 10+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 10+ corresponding lines) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:87 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:87-96 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:98-107 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:109-121 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:220-229 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:231-240 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 22+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 22+ corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/language_code_widget.dart:32 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/language_code_widget.dart:32-53 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/radio_button_selection_widget.dart:30-52 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_dropdown_selection_widget.dart:30-52 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:35-57 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/yes_no_choice_widget.dart:101-122 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 17+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:74 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:74-90 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:92-108 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:190-206 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/validation/document_validator.dart:208-224 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 11+ corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:41 — catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:41-51 | catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:57-67 | catalyst_voices/apps/voices/lib/pages/overall_spaces/space/workspace_overview.dart:40-50 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 10+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 10+ corresponding lines) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:228 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:228-237 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_number_schema.dart:88-97 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:327-336 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:424-433 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 14+ corresponding lines) catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:73 — catalyst_voices/apps/voices/lib/pages/overall_spaces/space/discovery_overview.dart:73-86 | catalyst_voices/apps/voices/lib/pages/overall_spaces/space/workspace_overview.dart:56-69 | catalyst_voices/apps/voices/lib/pages/spaces/appbar/actions/account_settings_action.dart:10-24 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 7+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 7+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/instructions_navigation.dart:9 — catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/instructions_navigation.dart:9-15 | catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/registration_conditions_checkbox.dart:9-15 | catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/setup_panel_navigation.dart:8-14 | catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/widgets/tos_and_privacy_policy_checkbox.dart:9-15 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 9+ corresponding lines) catalyst_voices/apps/voices/lib/pages/registration/pictures/base_profile_picture.dart:13 — catalyst_voices/apps/voices/lib/pages/registration/pictures/base_profile_picture.dart:13-23 | catalyst_voices/apps/voices/lib/pages/registration/pictures/keychain_picture.dart:13-21 | catalyst_voices/apps/voices/lib/pages/registration/pictures/password_picture.dart:13-21 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 4+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 4+ corresponding lines) catalyst_voices/apps/voices/lib/widgets/document_builder/value/agreement_confirmation_widget.dart:104 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/agreement_confirmation_widget.dart:104-108 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/duration_in_months_widget.dart:77-81 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/yes_no_choice_widget.dart:132-135 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (35 lines × 2) · ×1
  • Duplicated block (35 lines × 2) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:148 — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:148-182 | catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart:105-139 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart` and `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:148` 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 (20–21 lines × 3) · ×1
  • Duplicated block (20–21 lines × 3) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:40 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:40-60 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:103-123 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:159-178 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:40` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:62` calls `shrink` and `catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:124` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:168 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:168-188 | catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano_web/lib/src/interop/catalyst_cardano_wallet_js_to_dart_proxy.dart:275-295 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (17 lines × 4) · ×1
  • Duplicated block (17 lines × 4) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:541 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:541-557 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:630-646 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:275-291 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart:320-336 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/local_draft_documents_v2_dao.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:541` 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 (16 lines × 9) · ×1
  • Duplicated block (16 lines × 9) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:27 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:27-42 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:86-101 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:128-143 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:170-185 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:229-244 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:310-325 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:363-378 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:460-475 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:508-523 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart:27` 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 (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:21 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:21-35 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:83-98 — 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 `catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:21` 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 (15 lines × 10) · ×1
  • Duplicated block (15 lines × 10) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:33 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:33-47 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:50-64 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:67-81 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:84-98 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:101-115 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:118-132 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:135-149 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:153-167 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:171-185 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:187-202 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:33` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×1
  • Duplicated block (15 lines × 4) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:53 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:53-67 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:126-140 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:182-196 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_number_schema.dart:42-56 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_integer_schema.dart:53` 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 × 5) · ×1
  • Duplicated block (13 lines × 5) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:27 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:27-39 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:80-92 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:119-131 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:254-266 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:361-373 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_object_schema.dart:27` 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 (11–13 lines × 2) · ×1
  • Duplicated block (11–13 lines × 2) catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:41 — catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:41-53 | catalyst_voices/apps/voices/lib/pages/voting/widgets/header/voting_phase_progress_card.dart:125-135 — 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 `catalyst_voices/apps/voices/lib/pages/voting/widgets/header/account_voting_power_card.dart:41` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:22 — catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:22-33 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:85-96 | catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:143-154 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/apps/voices/lib/pages/workspace/widgets/user_proposals/proposal_card/workspace_proposal_card_responsiveness.dart:22` 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 (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:8 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:8-18 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart:8-18 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:8-18 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_number_schema_mapper.dart:8-18 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:8` 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 (10–11 lines × 2) · ×1
  • Duplicated block (10–11 lines × 2) catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:221 — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:221-230 | catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:195-205 — `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart` and `catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×1
  • Duplicated block (10 lines × 3) catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:20 — catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:20-29 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_details_tile.dart:20-29 | catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_proposal_template_tile.dart:20-29 — before extracting anything, compare `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart` and `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_details_tile.dart` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `catalyst_voices/apps/voices/lib/pages/treasury/sections/treasury_campaign_categories_step.dart:20` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–9 lines × 2) · ×1
  • Duplicated block (6–9 lines × 2) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:948 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:948-956 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1087-1092 — 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 `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:948` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:15 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:15-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart:15-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:15-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_number_schema_mapper.dart:15-20 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_object_schema_mapper.dart:16-21 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:16-21 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:13` calls `fromString` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:12` 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 (6 lines × 3) · ×1
  • Duplicated block (6 lines × 3) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:578 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:578-583 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:590-595 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:646-651 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart:578` 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 (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/crypto_exception.dart:8 — catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/crypto_exception.dart:8-61 | catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/vault_exception.dart:8-29 — 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 `catalyst_voices/packages/internal/catalyst_voices_models/lib/src/errors/crypto_exception.dart:8` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) catalyst_voices/apps/voices/lib/pages/proposal/proposal_page.dart:241 — catalyst_voices/apps/voices/lib/pages/proposal/proposal_page.dart:241-248 | catalyst_voices/apps/voices/lib/pages/proposal/widget/proposal_app_closed.dart:133-140 | catalyst_voices/apps/voices/lib/widgets/headers/sticky_header.dart:40-47 — 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.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) catalyst_voices/apps/voices/lib/widgets/document_builder/value/document_currency_widget.dart:128 — catalyst_voices/apps/voices/lib/widgets/document_builder/value/document_currency_widget.dart:128-136 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart:98-106 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart:98-106 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/simple_text_entry_widget.dart:136-144 | catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:97-105 — before extracting anything, compare `catalyst_voices/apps/voices/lib/widgets/document_builder/value/double_value_widget.dart` and `catalyst_voices/apps/voices/lib/widgets/document_builder/value/integer_value_widget.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) catalyst_voices/apps/voices/lib/pages/account/pending_email_change_dialog.dart:24 — catalyst_voices/apps/voices/lib/pages/account/pending_email_change_dialog.dart:24-30 | catalyst_voices/apps/voices/lib/pages/account/verification_email_send_dialog.dart:25-31 | catalyst_voices/apps/voices/lib/pages/account/verification_required_dialog.dart:23-29 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (9 lines × 6) · ×1
  • Duplicated block (9 lines × 6) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:82 — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart:82-90 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart:99-107 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_list_schema_mapper.dart:134-142 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_number_schema_mapper.dart:59-67 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_object_schema_mapper.dart:152-160 | catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_string_schema_mapper.dart:223-231 — before extracting anything, compare `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_boolean_schema_mapper.dart` and `catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/schema/mapper/document_integer_schema_mapper.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) catalyst_voices/packages/libs/catalyst_compression/lib/src/catalyst_brotli_compressor.dart:17 — catalyst_voices/packages/libs/catalyst_compression/lib/src/catalyst_brotli_compressor.dart:17-21 | catalyst_voices/packages/libs/catalyst_compression/lib/src/catalyst_brotli_compressor.dart:23-27 | catalyst_voices/packages/libs/catalyst_compression/lib/src/catalyst_zstd_compressor.dart:17-21 | catalyst_voices/packages/libs/catalyst_compression/lib/src/catalyst_zstd_compressor.dart:23-27 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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 (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) catalyst_voices/apps/voices/macos/Runner/MainFlutterWindow.swift:5 — catalyst_voices/apps/voices/macos/Runner/MainFlutterWindow.swift:5-14 | catalyst_voices/packages/libs/catalyst_key_derivation/example/macos/Runner/MainFlutterWindow.swift:5-14 | catalyst_voices/utilities/poc_local_storage/macos/Runner/MainFlutterWindow.swift:5-14 | catalyst_voices/utilities/remote_widgets/example/macos/Runner/MainFlutterWindow.swift:5-14 — before extracting anything, compare `catalyst_voices/apps/voices/macos/Runner/MainFlutterWindow.swift` and `catalyst_voices/packages/libs/catalyst_key_derivation/example/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:84 — catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:84-98 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:102-116 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:120-134 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:84` 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 (14–15 lines × 2) · ×1
  • Duplicated block (14–15 lines × 2) catalyst_voices/utilities/uikit_example/lib/examples/voices_tooltips_example.dart:38 — catalyst_voices/utilities/uikit_example/lib/examples/voices_tooltips_example.dart:38-52 | catalyst_voices/utilities/uikit_example/lib/examples/voices_tooltips_example.dart:53-66 — 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 `catalyst_voices/utilities/uikit_example/lib/examples/voices_tooltips_example.dart:38` 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 (13–14 lines × 7) · ×1
  • Duplicated block (13–14 lines × 7) catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69 — catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69-82 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:85-98 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:103-116 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:121-134 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:138-151 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:157-170 | catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:175-187 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:69` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:83` calls `success` and `catalyst_voices/utilities/uikit_example/lib/examples/voices_text_field_example.dart:68` 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.
D5 · Coupling · Unstable project catalyst_voices_blocs · ×1
  • Unstable project catalyst_voices_blocs — catalyst_voices_blocs has instability 0.91 with 1 dependents.
P12 · CI test-gate honesty · Coverage upload has no report to upload · ×1
  • Coverage upload has no report to upload REDACTED:201 — `coverallsapp/github-action` uploads a coverage report, but its job runs no tests — no step writes the report, so the number the upload would track is never measured. Run the tests with coverage in this job, or bring the report from the job that does (an artifact download).
R10 · Code Duplication · Duplicated block with local edits (78 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (78 matched lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:5913 — catalyst_voices/apps/voices/web/drift_worker.v1.js:5913 · catalyst_voices/apps/voices/web/drift_worker.v1.js:7359 — the two spans are one implementation copied and then locally edited — 900 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (36 lines × 2 locations) · ×1
  • Duplicated block (36 lines × 2 locations) utilities/wallet-tester/src/common/components/TxBuilder.tsx:131 — utilities/wallet-tester/src/common/components/TxBuilder.tsx:131 · utilities/wallet-tester/src/common/components/TxBuilder.tsx:266 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
R10 · Code Duplication · Duplicated block with local edits (31 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (31 matched lines × 2 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:64 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:64 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/nufiUtils.ts:4 — the two spans are one implementation copied and then locally edited — 162 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (24 lines × 2 locations) · ×1
  • Duplicated block (24 lines × 2 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:59 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:59 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/extensionDownloader.ts:101 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block (20 lines × 3 locations) · ×1
  • Duplicated block (20 lines × 3 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:171 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:171 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:192 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:213 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R10 · Code Duplication · Duplicated block with local edits (14 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (14 matched lines × 2 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:10407 — catalyst_voices/apps/voices/web/drift_worker.v1.js:10407 · catalyst_voices/apps/voices/web/drift_worker.v1.js:10424 — the two spans are one implementation copied and then locally edited — 186 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (12 lines × 6 locations) · ×1
  • Duplicated block (12 lines × 6 locations) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:113 — catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:113 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:163 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:184 · catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/pages/homePage.ts:205 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (10 lines × 3 locations) · ×1
  • Duplicated block (10 lines × 3 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:9753 — catalyst_voices/apps/voices/web/drift_worker.v1.js:9753 · catalyst_voices/apps/voices/web/drift_worker.v1.js:9801 · catalyst_voices/apps/voices/web/drift_worker.v1.js:10931 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R10 · Code Duplication · Duplicated block (9 lines × 6 locations) · ×1
  • Duplicated block (9 lines × 6 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:276 — catalyst_voices/apps/voices/web/drift_worker.v1.js:276 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1976 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2199 · catalyst_voices/apps/voices/web/drift_worker.v1.js:2215 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 5 locations) · ×1
  • Duplicated block (9 lines × 5 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:743 — catalyst_voices/apps/voices/web/drift_worker.v1.js:743 · catalyst_voices/apps/voices/web/drift_worker.v1.js:1984 · catalyst_voices/apps/voices/web/drift_worker.v1.js:3270 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4207 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 7 locations) · ×1
  • Duplicated block (9 lines × 7 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:4687 — catalyst_voices/apps/voices/web/drift_worker.v1.js:4687 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4702 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4712 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4722 · +3 more site(s) not listed — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R10 · Code Duplication · Duplicated block (8 lines × 4 locations) · ×1
  • Duplicated block (8 lines × 4 locations) catalyst_voices/apps/voices/web/drift_worker.v1.js:797 — catalyst_voices/apps/voices/web/drift_worker.v1.js:797 · catalyst_voices/apps/voices/web/drift_worker.v1.js:807 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4253 · catalyst_voices/apps/voices/web/drift_worker.v1.js:4280 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 53, cognitive 17) · ×1
  • Complex function (anonymous) (cyclomatic 53, cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:11616 — (anonymous) has cyclomatic complexity 53 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 51, cognitive 45) · ×1
  • Complex function (anonymous) (cyclomatic 51, cognitive 45) catalyst_voices/apps/voices/web/drift_worker.v1.js:9919 — (anonymous) has cyclomatic complexity 51 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function bm (cyclomatic 50, cognitive 122) · ×1
  • Complex function bm (cyclomatic 50, cognitive 122) catalyst_voices/apps/voices/web/drift_worker.v1.js:2692 — bm has cyclomatic complexity 50 and cognitive complexity 122; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function a8 (cyclomatic 50, cognitive 65) · ×1
  • Complex function a8 (cyclomatic 50, cognitive 65) catalyst_voices/apps/voices/web/drift_worker.v1.js:1511 — a8 has cyclomatic complexity 50 and cognitive complexity 65; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function iE (cyclomatic 40, cognitive 70) · ×1
  • Complex function iE (cyclomatic 40, cognitive 70) catalyst_voices/apps/voices/web/drift_worker.v1.js:10584 — iE has cyclomatic complexity 40 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function buildUnsignedTx (cyclomatic 34, cognitive 54) · ×1
  • Complex function buildUnsignedTx (cyclomatic 34, cognitive 54) utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts:34 — buildUnsignedTx has cyclomatic complexity 34 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 32, cognitive 19) · ×1
  • Complex function (anonymous) (cyclomatic 32, cognitive 19) catalyst_voices/apps/voices/web/drift_worker.v1.js:9038 — (anonymous) has cyclomatic complexity 32 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 31, cognitive 24) · ×1
  • Complex function (anonymous) (cyclomatic 31, cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:10118 — (anonymous) has cyclomatic complexity 31 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function jj (cyclomatic 30, cognitive 43) · ×1
  • Complex function jj (cyclomatic 30, cognitive 43) catalyst_voices/apps/voices/web/drift_worker.v1.js:8466 — jj has cyclomatic complexity 30 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function qY (cyclomatic 30, cognitive 11) · ×1
  • Complex function qY (cyclomatic 30, cognitive 11) catalyst_voices/apps/voices/web/drift_worker.v1.js:1360 — qY has cyclomatic complexity 30 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function wN (cyclomatic 28, cognitive 36) · ×1
  • Complex function wN (cyclomatic 28, cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:478 — wN has cyclomatic complexity 28 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function bR (cyclomatic 28, cognitive 24) · ×1
  • Complex function bR (cyclomatic 28, cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:888 — bR has cyclomatic complexity 28 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function vM (cyclomatic 27, cognitive 54) · ×1
  • Complex function vM (cyclomatic 27, cognitive 54) catalyst_voices/apps/voices/web/drift_worker.v1.js:2906 — vM has cyclomatic complexity 27 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function h3 (cyclomatic 27, cognitive 42) · ×1
  • Complex function h3 (cyclomatic 27, cognitive 42) catalyst_voices/apps/voices/web/drift_worker.v1.js:8730 — h3 has cyclomatic complexity 27 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function h1 (cyclomatic 26, cognitive 34) · ×1
  • Complex function h1 (cyclomatic 26, cognitive 34) catalyst_voices/apps/voices/web/drift_worker.v1.js:8765 — h1 has cyclomatic complexity 26 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function eK (cyclomatic 26, cognitive 31) · ×1
  • Complex function eK (cyclomatic 26, cognitive 31) catalyst_voices/apps/voices/web/drift_worker.v1.js:10520 — eK has cyclomatic complexity 26 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function ks (cyclomatic 25, cognitive 78) · ×1
  • Complex function ks (cyclomatic 25, cognitive 78) catalyst_voices/apps/voices/web/drift_worker.v1.js:7733 — ks has cyclomatic complexity 25 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function jc (cyclomatic 25, cognitive 36) · ×1
  • Complex function jc (cyclomatic 25, cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:9199 — jc has cyclomatic complexity 25 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 24, cognitive 17) · ×1
  • Complex function (anonymous) (cyclomatic 24, cognitive 17) catalyst_voices/apps/voices/web/drift_worker.v1.js:3843 — (anonymous) has cyclomatic complexity 24 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function jS (cyclomatic 23, cognitive 58) · ×1
  • Complex function jS (cyclomatic 23, cognitive 58) catalyst_voices/apps/voices/web/drift_worker.v1.js:7854 — jS has cyclomatic complexity 23 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function dz (cyclomatic 23, cognitive 55) · ×1
  • Complex function dz (cyclomatic 23, cognitive 55) catalyst_voices/apps/voices/web/drift_worker.v1.js:1756 — dz has cyclomatic complexity 23 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function rh (cyclomatic 23, cognitive 45) · ×1
  • Complex function rh (cyclomatic 23, cognitive 45) catalyst_voices/apps/voices/web/drift_worker.v1.js:2878 — rh has cyclomatic complexity 23 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function iD (cyclomatic 22, cognitive 26) · ×1
  • Complex function iD (cyclomatic 22, cognitive 26) catalyst_voices/apps/voices/web/drift_worker.v1.js:10565 — iD has cyclomatic complexity 22 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 22, cognitive 23) · ×1
  • Complex function (anonymous) (cyclomatic 22, cognitive 23) catalyst_voices/apps/voices/web/drift_worker.v1.js:3931 — (anonymous) has cyclomatic complexity 22 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 22, cognitive 16) · ×1
  • Complex function (anonymous) (cyclomatic 22, cognitive 16) catalyst_voices/apps/voices/web/drift_worker.v1.js:3988 — (anonymous) has cyclomatic complexity 22 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function j (cyclomatic 21, cognitive 47) · ×1
  • Complex function j (cyclomatic 21, cognitive 47) catalyst_voices/apps/voices/web/drift_worker.v1.js:8163 — j has cyclomatic complexity 21 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function rt (cyclomatic 21, cognitive 38) · ×1
  • Complex function rt (cyclomatic 21, cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:1554 — rt has cyclomatic complexity 21 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function iI (cyclomatic 21, cognitive 36) · ×1
  • Complex function iI (cyclomatic 21, cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:10505 — iI has cyclomatic complexity 21 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 21, cognitive 18) · ×1
  • Complex function (anonymous) (cyclomatic 21, cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:9569 — (anonymous) has cyclomatic complexity 21 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function wr (cyclomatic 20, cognitive 44) · ×1
  • Complex function wr (cyclomatic 20, cognitive 44) catalyst_voices/apps/voices/web/drift_worker.v1.js:2645 — wr has cyclomatic complexity 20 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function qH (cyclomatic 20, cognitive 38) · ×1
  • Complex function qH (cyclomatic 20, cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:2773 — qH has cyclomatic complexity 20 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function cE (cyclomatic 20, cognitive 36) · ×1
  • Complex function cE (cyclomatic 20, cognitive 36) catalyst_voices/apps/voices/web/drift_worker.v1.js:10628 — cE has cyclomatic complexity 20 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function qD (cyclomatic 20, cognitive 34) · ×1
  • Complex function qD (cyclomatic 20, cognitive 34) catalyst_voices/apps/voices/web/drift_worker.v1.js:3068 — qD has cyclomatic complexity 20 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function rg (cyclomatic 19, cognitive 44) · ×1
  • Complex function rg (cyclomatic 19, cognitive 44) catalyst_voices/apps/voices/web/drift_worker.v1.js:2993 — rg has cyclomatic complexity 19 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function we (cyclomatic 19, cognitive 25) · ×1
  • Complex function we (cyclomatic 19, cognitive 25) catalyst_voices/apps/voices/web/drift_worker.v1.js:1005 — we has cyclomatic complexity 19 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function rs (cyclomatic 18, cognitive 28) · ×1
  • Complex function rs (cyclomatic 18, cognitive 28) catalyst_voices/apps/voices/web/drift_worker.v1.js:1134 — rs has cyclomatic complexity 18 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 18, cognitive 18) · ×1
  • Complex function (anonymous) (cyclomatic 18, cognitive 18) catalyst_voices/apps/voices/web/drift_worker.v1.js:10327 — (anonymous) has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function cg (cyclomatic 17, cognitive 51) · ×1
  • Complex function cg (cyclomatic 17, cognitive 51) catalyst_voices/apps/voices/web/drift_worker.v1.js:8323 — cg has cyclomatic complexity 17 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function is (cyclomatic 17, cognitive 38) · ×1
  • Complex function is (cyclomatic 17, cognitive 38) catalyst_voices/apps/voices/web/drift_worker.v1.js:7806 — is has cyclomatic complexity 17 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function oj (cyclomatic 17, cognitive 24) · ×1
  • Complex function oj (cyclomatic 17, cognitive 24) catalyst_voices/apps/voices/web/drift_worker.v1.js:55 — oj has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · catalyst_voices/apps/voices/web/drift_worker.v1.js · ×1
  • catalyst_voices/apps/voices/web/drift_worker.v1.js: 13579 lines of code catalyst_voices/apps/voices/web/drift_worker.v1.js:1 — catalyst_voices/apps/voices/web/drift_worker.v1.js has 13579 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · utilities/wallet-tester/src/common/components/TxBuilder.tsx · ×1
  • utilities/wallet-tester/src/common/components/TxBuilder.tsx: 469 lines of code utilities/wallet-tester/src/common/components/TxBuilder.tsx:1 — utilities/wallet-tester/src/common/components/TxBuilder.tsx has 469 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · This package's lint script runs in no CI job · ×1
  • This package's lint script runs in no CI job utilities/wallet-tester/package.json:10 — The package in `utilities/wallet-tester` declares the lint script `lint` (`eslint './src/**/*.{ts,tsx}'`), but no step of this repository's CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs `npm run lint` in `utilities/wallet-tester` (or the workspace's task runner).
R7 · Dead Code · Dead file (~13580 LoC) · ×1
  • Dead file (~13580 LoC) catalyst_voices/apps/voices/web/drift_worker.v1.js — no import path from any entry point (11 application, 6 tooling, 47 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~0 LoC) · ×1
  • Dead file (~0 LoC) catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/test-fixtures.ts — no import path from any entry point (11 application, 6 tooling, 47 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency 'dayjs' · ×1
  • Unused dependency 'dayjs' utilities/wallet-tester/package.json:24 — Declared in utilities/wallet-tester/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×1
  • Owned disposable field is never released catalyst_voices/apps/voices/lib/widgets/document_builder/value/single_line_https_url_widget.dart:85 — `_SingleLineHttpsUrlWidgetState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_focusNode` itself (line 85, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_focusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_focusNode.dispose();` in `dispose()` before `super.dispose()`.
Minor — 731 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×570
  • Orphaned file catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/transaction_builder.dart: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 catalyst_voices/apps/voices/lib/widgets/text_field/voices_text_field.dart: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 catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart: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 catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/theme_extensions/voices_color_scheme.dart: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 catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart: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 catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart: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 catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart: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 catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_v2_dao.dart: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 catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/registration/registration_cubit.dart: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 catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/constant/f14_static_campaign_categories.dart: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 catalyst_voices/apps/voices/lib/dependency/dependencies.dart: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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/rbac/x509_certificate.dart: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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart: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 catalyst_voices/packages/internal/catalyst_voices_brands/lib/src/themes/catalyst.dart: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 utilities/wallet-tester/src/common/components/TxBuilder.tsx: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 catalyst_voices/apps/voices/lib/widgets/rich_text/voices_rich_text.dart: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 catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart: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 catalyst_voices/apps/voices/lib/pages/proposal_builder/proposal_builder_page.dart: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 catalyst_voices/packages/libs/catalyst_key_derivation/rust/src/key_derivation/mod.rs: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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/builders/input_builder.dart: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 catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/schema/property/document_string_schema.dart: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 catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/registration_service.dart: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 catalyst_voices/apps/voices/integration_test/pageobject/proposals_page.dart: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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/raw_transaction.dart: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 catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/exceptions.dart: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.
  • + 545 more in this group — see findings.md.
X4 · Structured logging · Interpolated log message defeats structured logging · ×36
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/cli.rs:71 — `error!` at line 71 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/logger.rs:155 — `error!` at line 155 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/logger.rs:159 — `error!` at line 159 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/telemetry.rs:68 — `error!` at line 68 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/telemetry.rs:71 — `error!` at line 71 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/telemetry.rs:74 — `error!` at line 74 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/cassandra_db.rs:119 — `info!` at line 119 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `info!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/chain_follower.rs:276 — `info!` at line 276 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `info!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/mod.rs:419 — `error!` at line 419 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/str_env_var.rs:233 — `error!` at line 233 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/str_env_var.rs:238 — `error!` at line 238 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/settings/str_env_var.rs:247 — `error!` at line 247 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/utilities/net.rs:13 — `error!` at line 13 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/utilities/net.rs:32 — `error!` at line 32 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/common/types/cardano/ada_value.rs:58 — `error!` at line 58 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/common/types/cardano/asset_value.rs:60 — `error!` at line 60 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/common/auth/rbac/scheme.rs:139 — `debug!` at line 139 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/common/auth/rbac/scheme.rs:179 — `debug!` at line 179 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/common/auth/rbac/token.rs:169 — `debug!` at line 169 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/health/inspection_get.rs:78 — `debug!` at line 78 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/cardano/staking/assets_get.rs:160 — `error!` at line 160 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:219 — `error!` at line 219 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:231 — `error!` at line 231 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:242 — `error!` at line 242 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • Interpolated log message defeats structured logging catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs:427 — `error!` at line 427 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: `error = %err`.
  • + 11 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Disabled test · ×31
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/app_test.dart:37 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/app_test.dart:55 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/app_test.dart:68 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/app_test.dart:83 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_restore_test.dart:65 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:300 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:349 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:389 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:429 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:469 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:483 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:496 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:510 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:524 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:538 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:551 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:565 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:579 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:593 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/onboarding_test.dart:624 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/proposals_test.dart:34 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/proposals_test.dart:45 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/proposals_test.dart:56 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/proposals_test.dart:87 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test catalyst_voices/apps/voices/integration_test/suites/proposals_test.dart:98 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • + 6 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×21
  • Duplicated predicate catalyst_voices/apps/voices/lib/app/view/app_precache_image_assets.dart:57 — `!_isInitialized.isCompleted && _lock.inLock` appears character-identically in 2 files — catalyst_voices/apps/voices/lib/app/view/app_precache_image_assets.dart, catalyst_voices/apps/voices/lib/app/view/video_cache/app_video_manager.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart:143 — `!roles.isFirstRegistration && previousTransactionId == null` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_bytes.dart, catalyst_voices/packages/internal/catalyst_voices_services/lib/src/registration/strategy/registration_transaction_strategy_models.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:145 — `_proposalsRequestCompleter != null && !_proposalsRequestCompleter!.isCompleted` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart, catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart:252 — `campaignVotingPhase != null && campaignStartDate != null` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart, catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting_ballot/voting_ballot_bloc.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart:520 — `isNotLocalAndHasActiveAccount && hasAccountUsername` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart, catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:178 — `json.containsKey('id') && json.containsKey('version')` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:327 — `json.containsKey('version') && !json.containsKey('ver')` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_ref_dto.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:200 — `json['brandId'] is String || json['campaignId'] is String` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_data_dto.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart:334 — `modified.containsKey('version') && !modified.containsKey('ver')` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/from_3_to_4.dart, catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/document_ref_dto.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/apps/voices/lib/pages/proposal/proposal_content.dart:94 — `readOnlyMode || CatalystFormFactor.current.isMobile` appears character-identically in 2 files — catalyst_voices/apps/voices/lib/pages/proposal/proposal_content.dart, catalyst_voices/apps/voices/lib/pages/proposal/proposal_page.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart:307 — `requestCompleter != null && !requestCompleter.isCompleted` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposals/proposals_cubit.dart, catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/voting/voting_cubit.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/document/document_to_segment_mixin.dart:27 — `showValidationErrors && !section.isValidExcludingSubsections` appears character-identically in 2 files — catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/document/document_to_segment_mixin.dart, catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart:72 — `widget.categoryId != oldWidget.categoryId || widget.tab != oldWidget.tab` appears character-identically in 2 files — catalyst_voices/apps/voices/lib/pages/proposals/proposals_page.dart, catalyst_voices/apps/voices/lib/pages/voting/voting_page.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:189 — `builtInMatches && builtInMatches.length > 1` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:89 — `cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:30 — `cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:5 — `typeof document !== 'undefined' && document.currentScript !== null` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:857 — `typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && …` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:852 — `typeof module_or_path === 'undefined' && typeof script_src !== 'undefined'` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:167 — `typeof name == 'string' && name.length > 0` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:810 — `typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !…` appears character-identically in 2 files — catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js, catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js. 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.
M4 · Documentation accuracy · README/code drift · ×16
  • README/code drift utilities/wallet-tester/README.md:5 — utilities/wallet-tester/README.md names Node.js 18, but the repository declares pinned 20, pinned 24. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/cs_CZ/README.md:54 — .config/dictionaries/cspell/cs_CZ/README.md links to `Czech.txt`, but `.config/dictionaries/cspell/cs_CZ/Czech.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/es_ES/README.md:44 — .config/dictionaries/cspell/es_ES/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/es_ES/src/additional_words.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/ru_RU/README.md:52 — .config/dictionaries/cspell/ru_RU/README.md links to `./src/additional_words.txt`, but `.config/dictionaries/cspell/ru_RU/src/additional_words.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/sk_SK/README.md:57 — .config/dictionaries/cspell/sk_SK/README.md links to `./Slovak.txt`, but `.config/dictionaries/cspell/sk_SK/Slovak.txt` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/al/dict/README.md:3 — .config/dictionaries/cspell/al/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/al/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/bg_BG/dict/README.md:3 — .config/dictionaries/cspell/bg_BG/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/bg_BG/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/city-names-finland/dict/README.md:3 — .config/dictionaries/cspell/city-names-finland/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/city-names-finland/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/eu/dict/README.md:3 — .config/dictionaries/cspell/eu/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/eu/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/it_IT/dict/README.md:3 — .config/dictionaries/cspell/it_IT/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/it_IT/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/lv/dict/README.md:3 — .config/dictionaries/cspell/lv/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/lv/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/redis/dict/README.md:3 — .config/dictionaries/cspell/redis/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/redis/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/ro_RO/dict/README.md:3 — .config/dictionaries/cspell/ro_RO/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/ro_RO/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/shell/dict/README.md:3 — .config/dictionaries/cspell/shell/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/shell/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/sr_Cyrl/dict/README.md:3 — .config/dictionaries/cspell/sr_Cyrl/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/sr_Cyrl/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift .config/dictionaries/cspell/sr_Latn/dict/README.md:3 — .config/dictionaries/cspell/sr_Latn/dict/README.md links to `../src/README.md`, but `.config/dictionaries/cspell/sr_Latn/src/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
AX6 · Interface segregation · Fat interface · ×11
  • Fat interface: ProposalsV2Dao (17 abstract methods) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1355 — `ProposalsV2Dao` declares 17 abstract methods: `getCollaboratorsActions`, `getLocalDraftsProposalsBrief`, `getLocalDraftsVersionsTitles`, `getLocalRawProposal`, `getProposal`, `getProposalsBriefPage`, `getProposalsTotalTask`, `getVersionsTitles`, `getVisibleProposalsCount`, `updateProposalFavorite`, `watchLocalDraftProposalsCount`, `watchLocalDraftsProposalsBrief`, `watchLocalRawProposal`, `watchProposal`, `watchProposalsBriefPage`, `watchProposalsTotalTask`, `watchVisibleProposalsCount`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: DocumentRepository (24 abstract methods) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart:19 — `DocumentRepository` declares 24 abstract methods: `deleteDocumentDraft`, `encodeDocumentForExport`, `findAllVersions`, `findFirst`, `getAllVersionsOfId`, `getDocumentArtifact`, `getDocumentData`, `getDocumentMetadata`, `getLatestOf`, `getProposalSubmissionActions`, `getRefCount`, `getRefToDocumentData`, `isCached`, `isFavorite`, `parseDocumentForImport`, `publishDocument`, `queryVersionsOfId`, `removeAll`, `saveImportedDocument`, `upsertLocalDraftDocument`, `watchCount`, `watchDocument`, `watchDocuments`, `watchRefToDocumentData`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: ProposalDocumentDataLocalSource (16 abstract methods) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/source/proposal_document_data_local_source.dart:3 — `ProposalDocumentDataLocalSource` declares 16 abstract methods: `getCollaboratorsActions`, `getLocalDraftsVersionsTitles`, `getLocalRawProposalData`, `getPreviousOf`, `getProposalsTotalTask`, `getRawProposalData`, `getVersionsTitles`, `updateProposalFavorite`, `watchLocalDraftProposalsCount`, `watchLocalRawProposalData`, `watchProposalsCountV2`, `watchProposalsTotalTask`, `watchProposalTemplates`, `watchRawLocalDraftsProposalsBrief`, `watchRawProposalData`, `watchRawProposalsBriefPage`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: ProposalRepository (24 abstract methods) catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart:18 — `ProposalRepository` declares 24 abstract methods: `deleteDraftProposal`, `encodeProposalForExport`, `getLocalProposal`, `getProposal`, `getProposalPublishForRef`, `getProposalTemplate`, `getProposalV2`, `publishProposal`, `publishProposalAction`, `queryVersionsOfId`, `removeCollaboratorFromProposal`, `updateProposalFavorite`, `upsertDraftProposal`, `watchCommentsCount`, `watchLatestProposals`, `watchLocalDraftProposalsBrief`, `watchLocalDraftProposalsCount`, `watchLocalProposal`, `watchProposal`, `watchProposalPublish`, `watchProposalsBriefPage`, `watchProposalsCountV2`, `watchProposalTemplates`, `watchUserProposals`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: ProposalService (25 abstract methods) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/proposal/proposal_service.dart:10 — `ProposalService` declares 25 abstract methods: `addFavoriteProposal`, `createDraftProposal`, `deleteDraftProposal`, `encodeProposalForExport`, `forgetProposal`, `getLatestProposalVersion`, `getProposal`, `getProposalDetail`, `getProposalTemplate`, `getProposalV2`, `importProposal`, `isMaxProposalsLimitReached`, `publishProposal`, `removeFavoriteProposal`, `submitCollaboratorProposalAction`, `submitProposalForReview`, `unlockProposal`, `upsertDraftProposal`, `validateForCollaborator`, `watchInvitesApprovalsCount`, `watchMaxProposalsLimitReached`, `watchProposal`, `watchProposalsBriefPageV2`, `watchProposalsCountV2`, `watchWorkspaceProposalsBrief`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: UserService (22 abstract methods) catalyst_voices/packages/internal/catalyst_voices_services/lib/src/user/user_service.dart:12 — `UserService` declares 22 abstract methods: `activeAccountId`, `user`, `watchUnlockedActiveAccount`, `watchUser`, `dispose`, `getPreviousRegistrationTransactionId`, `getRecoverableAccount`, `getUser`, `isActiveAccountPubliclyVerified`, `isPubliclyVerified`, `recoverAccount`, `refreshActiveAccountProfile`, `refreshActiveAccountVotingPower`, `registerAccount`, `removeAccount`, `removeAllAccounts`, `resendActiveAccountVerificationEmail`, `updateAccount`, `updateSettings`, `useAccount`, `useLocalUser`, `validateCatalystIdForProposerRole`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: RustLibApiImplPlatform (19 abstract methods) catalyst_voices/packages/libs/catalyst_compression/lib/src/rust/frb_generated.io.dart:13 — `RustLibApiImplPlatform` declares 19 abstract methods: `dco_decode_AnyhowException`, `dco_decode_String`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_u_8`, `sse_decode_AnyhowException`, `sse_decode_String`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_u_8`, `sse_decode_i_32`, `sse_decode_bool`, `sse_encode_AnyhowException`, `sse_encode_String`, `sse_encode_list_prim_u_8_loose`, `sse_encode_list_prim_u_8_strict`, `sse_encode_u_8`, `sse_encode_i_32`, `sse_encode_bool`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: RustLibApiImplPlatform (19 abstract methods) catalyst_voices/packages/libs/catalyst_compression/lib/src/rust/frb_generated.web.dart:15 — `RustLibApiImplPlatform` declares 19 abstract methods: `dco_decode_AnyhowException`, `dco_decode_String`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_u_8`, `sse_decode_AnyhowException`, `sse_decode_String`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_u_8`, `sse_decode_i_32`, `sse_decode_bool`, `sse_encode_AnyhowException`, `sse_encode_String`, `sse_encode_list_prim_u_8_loose`, `sse_encode_list_prim_u_8_strict`, `sse_encode_u_8`, `sse_encode_i_32`, `sse_encode_bool`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: RustLibApi (29 abstract methods) catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.dart:74 — `RustLibApi` declares 29 abstract methods: `crateKeyDerivationBip32Ed25519SignatureGetInner`, `crateKeyDerivationBip32Ed25519SignatureNew`, `crateKeyDerivationBip32Ed25519SignatureToHex`, `crateKeyDerivationBip32Ed25519XPrivateKeyDeriveXprv`, `crateKeyDerivationBip32Ed25519XPrivateKeyDrop`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetChainCode`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetExtendedSecretKey`, `crateKeyDerivationBip32Ed25519XPrivateKeyGetInner`, `crateKeyDerivationBip32Ed25519XPrivateKeyNew`, `crateKeyDerivationBip32Ed25519XPrivateKeySignData`, `crateKeyDerivationBip32Ed25519XPrivateKeyToHex`, `crateKeyDerivationBip32Ed25519XPrivateKeyVerifySignature`, `crateKeyDerivationBip32Ed25519XPrivateKeyXpublicKey`, `crateKeyDerivationBip32Ed25519XPublicKeyGetChainCode`, `crateKeyDerivationBip32Ed25519XPublicKeyGetInner`, `crateKeyDerivationBip32Ed25519XPublicKeyGetPublicKey`, `crateKeyDerivationBip32Ed25519XPublicKeyNew`, `crateKeyDerivationBip32Ed25519XPublicKeyToHex`, `crateKeyDerivationBip32Ed25519XPublicKeyVerifySignature`, `crateKeyDerivationMnemonicToXprv`, `rust_arc_increment_strong_count_Bip32Ed25519Signature`, `rust_arc_decrement_strong_count_Bip32Ed25519Signature`, `rust_arc_decrement_strong_count_Bip32Ed25519SignaturePtr`, `rust_arc_increment_strong_count_Bip32Ed25519XPrivateKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPrivateKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPrivateKeyPtr`, `rust_arc_increment_strong_count_Bip32Ed25519XPublicKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPublicKey`, `rust_arc_decrement_strong_count_Bip32Ed25519XPublicKeyPtr`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: RustLibApiImplPlatform (68 abstract methods) catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.io.dart:13 — `RustLibApiImplPlatform` declares 68 abstract methods: `dco_decode_AnyhowException`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_String`, `dco_decode_bool`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_opt_String`, `dco_decode_u_8`, `dco_decode_u_8_array_32`, `dco_decode_u_8_array_64`, `dco_decode_u_8_array_96`, `dco_decode_unit`, `dco_decode_usize`, `sse_decode_AnyhowException`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_String`, `sse_decode_bool`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_opt_String`, `sse_decode_u_8`, `sse_decode_u_8_array_32`, and 28 more. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: RustLibApiImplPlatform (68 abstract methods) catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust/frb_generated.web.dart:15 — `RustLibApiImplPlatform` declares 68 abstract methods: `dco_decode_AnyhowException`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `dco_decode_String`, `dco_decode_bool`, `dco_decode_list_prim_u_8_loose`, `dco_decode_list_prim_u_8_strict`, `dco_decode_opt_String`, `dco_decode_u_8`, `dco_decode_u_8_array_32`, `dco_decode_u_8_array_64`, `dco_decode_u_8_array_96`, `dco_decode_unit`, `dco_decode_usize`, `sse_decode_AnyhowException`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519Signature`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPrivateKey`, `sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBip32Ed25519XPublicKey`, `sse_decode_String`, `sse_decode_bool`, `sse_decode_list_prim_u_8_loose`, `sse_decode_list_prim_u_8_strict`, `sse_decode_opt_String`, `sse_decode_u_8`, `sse_decode_u_8_array_32`, and 28 more. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D24 · Comment Value · redundant comment · ×6
  • redundant comment catalyst_voices/apps/voices/e2e_tests/utils/wallets/lace-actions.ts:75 — "Click confirm button" repeats the code it sits on: 3 of its 3 words (click, confirm, button) are already in `await this.page.getByRole("button", { name: "Confirm" }).click();`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment catalyst_voices/apps/voices/e2e_tests/utils/wallets/lace-actions.ts:105 — "Click the restore wallet button and wait for the next page to load" repeats the code it sits on: 7 of its 8 words (click, restore, wallet, button, wait, next, page) are already in `await Promise.all([`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment catalyst_voices/apps/voices/e2e_tests/utils/wallets/yoroi-actions.ts:76 — "Click on the connected wallet button to authorize" repeats the code it sits on: 4 of its 5 words (click, connected, wallet, button) are already in `await this.page.locator("button:has(#connectedWalletName)").click();`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:7 — "Selector for the restore wallet button" repeats the code it sits on: 4 of its 4 words (selector, restore, wallet, button) are already in `const restoreWalletButtonSelector = '[data-testid="restore-wallet-button"]';`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/laceUtils.ts:20 — "Click the restore wallet button and wait for the next page to load" repeats the code it sits on: 7 of its 8 words (click, restore, wallet, button, wait, next, page) are already in `await Promise.all([`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment utilities/wallet-tester/src/common/helpers/cleanHex.ts:5 — "Check if the cleaned string is a valid hex string" repeats the code it sits on: 4 of its 5 words (check, cleaned, string, hex) are already in `if (!/^[0-9a-fA-F]*$/.test(cleanedHexString))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×6
  • Projects may be oversized for their cohesion catalyst_voices/apps/voices/pubspec.yaml:1 — `catalyst_voices/apps/voices` (75971 LoC, 844 module-visible types across 170 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
  • Projects may be oversized for their cohesion catalyst_voices/packages/internal/catalyst_voices_repositories/pubspec.yaml:1 — `catalyst_voices/packages/internal/catalyst_voices_repositories` (100834 LoC, 228 module-visible types across 46 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
  • Projects may be oversized for their cohesion catalyst-gateway/bin/Cargo.toml:1 — `catalyst-gateway/bin` (28556 LoC, 132 module-visible types across 43 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
  • Projects may be oversized for their cohesion catalyst_voices/packages/internal/catalyst_voices_models/pubspec.yaml:1 — `catalyst_voices/packages/internal/catalyst_voices_models` (12300 LoC, 371 module-visible types across 45 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
  • Projects may be oversized for their cohesion catalyst_voices/packages/internal/catalyst_voices_view_models/pubspec.yaml:1 — `catalyst_voices/packages/internal/catalyst_voices_view_models` (4955 LoC, 223 module-visible types across 32 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
  • Projects may be oversized for their cohesion catalyst_voices/packages/internal/catalyst_voices_blocs/pubspec.yaml:1 — `catalyst_voices/packages/internal/catalyst_voices_blocs` (9854 LoC, 263 module-visible types across 30 directories) overshoots its size bounds. 6 of 42 build unit(s) (Bundler, Cargo, Gradle, Python, Xcode, checkout, npm, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/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.
X7 · Silent fallback defaults · Silent fallback default in catch · ×6
  • Silent fallback default in catch catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/converter/string_list_converter.dart:23 — `fromSql` turns every thrown error into `[]` — a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the `catch` or in the `///` doc, and the row stops firing.
  • Silent fallback default in catch catalyst_voices/packages/libs/catalyst_compression/assets/js/v1/catalyst_compression.js:201 — `debugString` swallows every exception into `return 'Object'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch catalyst_voices/packages/libs/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:201 — `debugString` swallows every exception into `return 'Object'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch catalyst_voices/scripts/version_web_assets/test/helper/build_wasm/assets/packages/catalyst_compression/assets/js/v1/catalyst_compression.js:201 — `debugString` swallows every exception into `return 'Object'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch catalyst_voices/scripts/version_web_assets/test/helper/build_wasm/assets/packages/catalyst_key_derivation/assets/js/v1/catalyst_key_derivation.js:201 — `debugString` swallows every exception into `return 'Object'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch utilities/wallet-tester/src/common/components/TxBuilder.tsx:86 — `formatUtxoAmount` (in `TxBuilder`) swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
D31 · IaC & Container Security · Low IaC · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D34 · Knowledge Freshness · Most significant orphaned file · ×3
  • Most significant orphaned file catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/proposals_v2_dao.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file catalyst_voices/packages/internal/catalyst_voices_models/lib/src/campaign/constant/f15_static_campaign_categories.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
D41 · Kernel & Syscall Confinement · No seccomp profile · ×3
  • No seccomp profile REDACTED:2 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:63 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:16 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
P10 · Library API & versioning · Implementation type on the public API · ×2
  • Implementation type on the public API catalyst_voices/apps/voices/lib/permissions/permission_handler_factory.dart:26 — 1 public type in `repository.permissions` is marked as implementation by its own namespace, folder or name: `PermissionHandlerImpl` (catalyst_voices/apps/voices/lib/permissions/permission_handler_factory.dart:26, name ends in `Impl`). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers.
  • Implementation type on the public API catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_image.dart:3 — 1278 public types in `repository.src` are marked as implementation by their own namespace, folder or name: `CatalystImage` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_image.dart:3, `internal`), `CatalystSvgIcon` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_svg_icon.dart:6, `internal`), `CatalystSvgPicture` (catalyst_voices/packages/internal/catalyst_voices_assets/lib/src/catalyst_svg_picture.dart:5, `internal`), `AccountCubit` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_cubit.dart:9, `internal`), `AccountSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:3, `internal`), `AccountVerificationEmailSendSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:10, `internal`), `PendingEmailChangeSignal` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_signal.dart:14, `internal`), `AccountRolesState` (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_state.dart:5, `internal`), and 1270 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
X23 · Unguarded diagnostic materialisation · Diagnostic log message is built whether or not it is wanted · ×2
  • Diagnostic log message is built whether or not it is wanted catalyst_voices/packages/libs/catalyst_key_derivation/cargokit/build_tool/lib/src/util.dart:47 — `finer` at line 47 is called with an argument built by `arguments.join('…')` (line 47), whose cost grows with the collection it walks. Dart evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because finer is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isLoggable` test, no `kDebugMode` or debug flag, no `assert`, no closure the logger calls only when the level is on.
  • Diagnostic log message is built whether or not it is wanted catalyst_voices/packages/libs/catalyst_compression/cargokit/build_tool/lib/src/util.dart:109 — `finer` at line 109 is called with an argument built by `arguments.join('…')` (line 109), whose cost grows with the collection it walks. Dart evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because finer is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isLoggable` test, no `kDebugMode` or debug flag, no `assert`, no closure the logger calls only when the level is on.
D21 · Naming Consistency · `DRepID` spells `ID` where 555 names in the project spell it `Id` · ×1
  • `DRepID` spells `ID` where 555 names in the project spell it `Id` catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/cip95/drep.dart:3 — 555 of 556 names in project repository.src spell the token `Id` (555 of 556; unit: names in project repository.src containing `Id`). Peers: AccountState.catalystId (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_state.dart:19); AccountState.AccountState(catalystId) (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_state.dart:26); AccountState.copyWith(catalystId) (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/account/account_state.dart:45); ChangeCategoryRefSignal.categoryId (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_signal.dart:15); ChangeCategoryRefSignal.ChangeCategoryRefSignal(categoryId) (catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/category/category_detail_signal.dart:17). Rename to `DRepId`. [rule N6]
D21 · Naming Consistency · `fromJSON` spells `JSON` where 72 names in the project spell it `Json` · ×1
  • `fromJSON` spells `JSON` where 72 names in the project spell it `Json` catalyst_voices/packages/libs/catalyst_cardano_serialization/lib/src/scripts.dart:111 — 72 of 73 names in project repository.src spell the token `Json` (72 of 73; unit: names in project repository.src containing `Json`). Peers: DocumentContentType.fromJson (catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/data/document_content_type.dart:18); DocumentContentType.toJson (catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/data/document_content_type.dart:25); DocumentType.fromJson (catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/data/document_type.dart:88); DocumentType.toJson (catalyst_voices/packages/internal/catalyst_voices_models/lib/src/document/data/document_type.dart:95); repository.src.SignedDocumentJsonPayload (catalyst_voices/packages/internal/catalyst_voices_models/lib/src/signed_document/signed_document_payload.dart:19). Rename to `fromJson`. [rule N6]
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Low CVE · ×1
  • REDACTED
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 573 of 573 significant files have no living knowledge — the codebase as a whole is dormant, not 573 separate risks. Counted over 573 of the 1836 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.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D40 · Network Egress Confinement · No network policy · ×1
  • No network policy — No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 9/29 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `catalyst_voices/apps/voices/ios`, `catalyst_voices/apps/voices/macos`, `catalyst_voices/packages/internal/catalyst_voices_assets`, `catalyst_voices/packages/internal/catalyst_voices_assets/example`, `catalyst_voices/packages/internal/catalyst_voices_localization` and 15 more.
P3 · Security & performance tooling · Dependabot does not watch npm/uv/gradle/bundler · ×1
  • Dependabot does not watch npm/uv/gradle/bundler REDACTED:7 — `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, `uv`, `gradle`, `bundler`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the `updates:` list.
R7 · Dead Code · Unused export 'getWalletConfig' · ×1
  • Unused export 'getWalletConfig' catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/walletConfigs.ts:127 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'getWalletConfigs' · ×1
  • Unused export 'getWalletConfigs' catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/walletConfigs.ts:137 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'connectWalletPopup' · ×1
  • Unused export 'connectWalletPopup' catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/utils/wallets/nufiUtils.ts:29 — Nothing imports this binding — it is safe to review for removal.
S1 · Web-Security Posture · Security headers incomplete · ×1
  • Security headers incomplete catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/nginx.conf:17 — Set: Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy, Referrer-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options. Missing: Content-Security-Policy — the four headers that carry the points of this card's security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each. (−0.5 on this card.)
X2 · Cancellation propagation · Not all functions that make a request accept an AbortSignal or a CancelToken · ×1
  • Not all functions that make a request accept an AbortSignal or a CancelToken — Only 3/5 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; Dio, AbortableRequest) accept an AbortSignal or a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a `signal` (Dart: `CancelToken? cancelToken`) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Minor — 1 finding(s)
D24 · Comment Value · doc comments repeat the names · ×1
  • doc comments repeat the names catalyst_voices/apps/voices/e2e_tests/data/accountConfigs.ts:33 — 0 of 2 documented parameters and 1 of 3 summaries in `e2e_tests` only repeat the member or parameter name (e.g. "Get all account models" for `getAccountModels`). Delete the restating tags, or add what the name does not say.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-40e72c46cc49428b908b6cf37ddc1d85/history.json --exit-code 0 --source .8artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=800" --report-format json --report-path /tmp/watchdog-gitleaks-40e72c46cc49428b908b6cf37ddc1d85/history-1.json --exit-code 0 --source .2artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=1000 --max-count=590" --report-format json --report-path /tmp/watchdog-gitleaks-40e72c46cc49428b908b6cf37ddc1d85/history-2.json --exit-code 0 --source .15artifacts/raw/gitleaks-history-2.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-40e72c46cc49428b908b6cf37ddc1d85/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude catalyst_voices/apps/voices/ios/Flutter/ephemeral --exclude catalyst_voices/packages/libs/catalyst_compression/lib/src/rust --exclude catalyst_voices/packages/libs/catalyst_key_derivation/lib/src/rust .88artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .50artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .84artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 1 file(s) — `catalyst_voices/apps/voices/web/drift_worker.v1.js` — so the PII/GDPR sweep did not cover them at all.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json

Run 01a1e747-d4a1-7c21-a470-369f01ca3e93 · 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