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

doonfrs/trina_grid

Measured 16 November 2026, 13:53 UTC, at code version d46c7f9

Knowledge freshness is not measured: Freshness signal contradicted by repo activity.

Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.

CAI score 62.5out of 100 Adequate
CriticalWeakAdequateStrongExemplary

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

A medium codebase: 54,165 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 0.7 person-years · Weakest lens: Production Readiness, 46.8

Findings by how serious they are

5 critical 329 serious 36 minor

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

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
16 November 2026, 13:53 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

46of 46 dimensions measured by tools.
365of 370 findings point to an exact file and line, so you can open each one in the code. The other 5 concern the repository as a whole, such as missing documentation.
46dimensions across 6 lenses, read from 54,165 lines of product code in 1 project.
Chapters

Executive summary

doonfrs/trina_grid falls short of our standard for production because we found no logging, tracing or health checks in the code and no automated security scanning of the code, its secrets or its dependencies. It scores 62.5 out of 100 and is rated Adequate, and all five of its critical findings are security problems in the build pipeline.

Production Readiness, at 46.8, is the weakest lens and counts most in the score. The best first step is adding a diagnostic log, worth about 10.0 points. Recording design decisions comes next, worth about 4.7 points. Raising Production Readiness to 70 would lift the score to about 72.7.

Five pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Pinning each tool to an exact version would close this risk.

The product code is 54,165 lines, about €110,000 to rebuild.

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

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

If Production Readiness rose from 46.8 to 70, the lowest score rated Strong, the score would rise from 62.5 to about 72.7.

Code composition: what the lines of code are
Product code 56%Tests 44%
Rebuild cost: about €110,000 · Estimate
Cost to rebuild€36,000 to €180,000, for 599 to 1,902 hours of work, about 0.7 person-years for 1 to 2 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.9 at a score of 63. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeMedium: 54,165 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
Write a diagnostic trail the user can hand back with a bug report: log through `package:logging` to a file in the app's support directory that a report can attach.
Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
Raises the score by about 10.0 points · Medium effort · Observability
2
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with pubspec.yaml.
Raises the score by about 4.7 points · Low effort · ADR Quality
3
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Raises the score by about 3.8 points · Medium effort · Architecture documentation

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 €110,000 to build again, about 0.7 person-years of work. Its weakest lens is Production Readiness, at 46.8 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Write a diagnostic trail the user can hand back with a bug report: log through `package:logging` to a file in the app's support directory that a report can attach. Of all the actions in this report, it raises the score most for the work it takes: about 10.0 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.7 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 7% on every change. The history of the code shows how much it changes: about 13,772 lines over the last 90 days, which is about 55,853 lines a year. At that pace, the extra work comes to an estimated 4.4 to 26.7 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

At a glance — Code Health · 71.0 · Strong ·

At a glance — Architecture · 95.5 · Exemplary ·

At a glance — Maturity · 67.1 · Adequate · gated by M2 ·

At a glance — Readiness · 46.8 · Weak · gated by P2, P3 ·

At a glance — Security · 99.1 · Exemplary ·

At a glance — Performance · 100.0 · Exemplary ·

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 — Injection7High / Critical

Roadmap

Top priorities: Write a diagnostic trail the user can hand back with a bug report: log through `package:logging` to a file in the app's support directory that a report can attach. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with pubspec.yaml; Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.

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

Do thisHelpsEffortDimension
Write a diagnostic trail the user can hand back with a bug report: log through `package:logging` to a file in the app's support directory that a report can attach. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.+10.0 ptsMediumObservability
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with pubspec.yaml.+4.7 ptsLowADR Quality
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+3.8 ptsMediumArchitecture documentation
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.+1.4 ptsLowBus Factor
Swallowed exception (caught, then discarded)+2.1 ptsMediumException handling
Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with trina_grid_configuration.dart, trina_grid.dart.+0.7 ptsMediumChurn × Complexity Hotspots
Bring the 34 bodies over 15 down to 15 or less in Cognitive Complexity — start with ColumnState._applyCompoundSort (cognitive 65), TrinaGridLayoutDelegate.performLayout (cognitive 64), TrinaGridStyleConfig.== (cognitive 63).+1.2 ptsHighCognitive Complexity
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.+1.1 ptsMediumDocumentation (README)

File quality

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

FileScoreBandWorst signal
REDACTED3.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
lib/src/ui/scrolls/trina_smooth_scrollable.dart4.8MixedCyclomatic Complexity: _ScrollableSelectionContainerDelegate._jumpToEdge (cyclomatic 24)
lib/src/widgets/trina_horizontal_scroll_bar.dart5.5MixedCyclomatic Complexity: _TrinaHorizontalScrollBarState.build (cyclomatic 29)
lib/src/ui/columns/trina_column_filter.dart5.6MixedCyclomatic Complexity: TrinaColumnFilterState._handleOnKey (cyclomatic 26)
lib/src/plugin/trina_lazy_pagination.dart5.6MixedCode Duplication: Edited copy of a member (36 corresponding lines)
lib/src/ui/trina_body_columns.dart5.6MixedCognitive Complexity: MainColumnLayoutDelegate.performLayout (cognitive 16)
lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart5.9MixedGod Classes: TooManyMethods: _RenderSingleChildViewport
lib/src/ui/miscellaneous/trina_visibility_layout.dart5.9MixedCode Duplication: Edited copy of a member (51 corresponding lines)
lib/src/ui/trina_left_frozen_columns.dart5.9MixedCode Duplication: Edited copy of a member (15 corresponding lines)
lib/src/manager/state/column_state.dart6.0MixedExplicit Debt: TodoComment
lib/src/manager/state/row_group_state.dart6.0MixedExplicit Debt: TodoComment
lib/src/manager/state/selecting_state.dart6.0MixedExplicit Debt: TodoComment
lib/src/manager/state/row_state.dart6.0MixedExplicit Debt: TodoComment
lib/src/helper/filtered_list.dart6.0MixedExplicit Debt: TodoComment
lib/src/ui/trina_base_row.dart6.3MixedCyclomatic Complexity: _RowContainerWidgetState._getBoxDecoration (cyclomatic 17)
lib/src/widgets/trina_linked_scroll_controller.dart6.3MixedCode Duplication: Edited copy of a member (18 corresponding lines)
lib/src/model/column_types/trina_column_type_custom.dart6.3MixedCode Duplication: Edited copy of a member (8 corresponding lines)
demo/lib/screen/feature/add_and_remove_column_row_screen.dart6.3MixedCode Duplication: Duplicated block (27 lines × 4)
lib/src/trina_grid_configuration.dart7.0MixedCyclomatic Complexity: TrinaGridStyleConfig.== (cyclomatic 64)

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

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

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 36

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

Could not be resolved — 10

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

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

What we checked — 46 dimensions across the health lenses
D1D2D3D4D6D13D14D15D16D17D19D20D28D29D35D44AX10AX3AX4AX6AX9GD1IC1M1M2M3M4P1P10P2P3P6PF3X1X12X16X17X18X19X21X25X27X29X3X30X5

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, 365 of 370 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

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

Tools & methods

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

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

Every finding is locatable in findings.md. Run 01a1e4a1-f88c-77d3-8b9b-fd2a639238a2.

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 READ here — but this repository measures it: a coverage step in CI (`flutter test --coverage`), uploaded by `codecov/codecov-action` and a Codecov configuration (.codecov.yml) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.dart), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.dart) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 4 Maven/Gradle manifest(s) were read, stating a version for 0 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • 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 — 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. 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 — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
  • D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D26 Project Cohesion — 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. `(repository root)` (38330 LoC, 353 module-visible types across 17 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
  • 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.
  • D34 Knowledge Freshness — 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. File-level freshness contradicts repo activity: 34 commits in the last 90 days, yet 54 of 101 significant files carry no living knowledge. Those two readings cannot both be true, so the per-file recency signal is treated as unreliable here and freshness is not scored for this run.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • 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").
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • M4 Documentation accuracy: 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.
  • 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.8 / 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.8 / 10 · rule-coverage 100% · ceiling Prevented

21 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was TrinaGridStyleConfig.== at 64. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being TrinaNotifierFilterResolverDefault.resolve at 17 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: lib/src/manager/trina_change_notifier_filter.dart (TrinaNotifierFilterResolverDefault.resolve 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.

TrinaGridStyleConfig.== (cyclomatic 64)lib/src/trina_grid_configuration.dart:1232
TrinaGridLocaleText.== (cyclomatic 59)lib/src/trina_grid_configuration.dart:3103
TrinaGridLayoutDelegate.performLayout (cyclomatic 42)lib/src/trina_grid.dart:1332
ColumnState._applyCompoundSort (cyclomatic 29)lib/src/manager/state/column_state.dart:692
_TrinaHorizontalScrollBarState.build (cyclomatic 29)lib/src/widgets/trina_horizontal_scroll_bar.dart:174

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

What to do

  1. Bring the 3 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with TrinaGridStyleConfig.== (cyclomatic 64), TrinaGridLocaleText.== (cyclomatic 59), TrinaGridLayoutDelegate.performLayout (cyclomatic 42). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cyclomatic Complexity from 6.8 to about 7.6/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 Complexity6.5 / 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 6.5 / 10 · rule-coverage 100% · ceiling Prevented

34 method(s) exceeded the cognitive complexity threshold of 15; the worst was ColumnState._applyCompoundSort at 65.

ColumnState._applyCompoundSort (cognitive 65)lib/src/manager/state/column_state.dart:692
TrinaGridLayoutDelegate.performLayout (cognitive 64)lib/src/trina_grid.dart:1332
TrinaGridStyleConfig.== (cognitive 63)lib/src/trina_grid_configuration.dart:1232
TrinaGridLocaleText.== (cognitive 58)lib/src/trina_grid_configuration.dart:3103
TrinaResizePushAndPull.update (cognitive 50)lib/src/helper/trina_size_helper.dart:472

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

What to do

  1. Bring the 34 bodies over 15 down to 15 or less in Cognitive Complexity — start with ColumnState._applyCompoundSort (cognitive 65), TrinaGridLayoutDelegate.performLayout (cognitive 64), TrinaGridStyleConfig.== (cognitive 63). — 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 34 together lifts Cognitive Complexity from 6.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.

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

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

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

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

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

27 god class(es) detected.

FileTooLong: src/trina_grid_configuration.dart · ×8lib/src/trina_grid_configuration.dart
TooManyMethods: ILayoutState · ×8lib/src/manager/state/layout_state.dart:5
MethodTooLong: TrinaGridLayoutDelegate.performLayout · ×7lib/src/trina_grid.dart:1332
ClassTooLong: TrinaGridLocaleText · ×4lib/src/trina_grid_configuration.dart:1931

What to do

  1. Resolve the 8 FileTooLong finding(s) in God Classes — start with trina_grid_configuration.dart, trina_smooth_scrollable.dart, trina_grid.dart. — One of this dimension's main actionable groups (8 warning-level).
  2. Resolve the 8 TooManyMethods finding(s) in God Classes — start with layout_state.dart, filtered_list.dart, column_state.dart. — One of this dimension's main actionable groups (8 warning-level).
  3. Resolve the 7 MethodTooLong finding(s) in God Classes — start with trina_grid.dart (2), trina_grid_configuration.dart, trina_vertical_scroll_bar.dart. — One of this dimension's main actionable groups (7 warning-level).

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

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

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

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

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

138 duplicated block group(s) detected. 12.2 % of the production lines (6,605 of 54,165) are in a reported copy. A further 63 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 112 of the 201 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.

Duplicated block (21 lines × 2) · ×8lib/src/manager/state/column_state.dart:768
Duplicated block (10 lines × 2) · ×7lib/src/manager/trina_change_notifier_filter.dart:285
Duplicated block (23 lines × 2) · ×5lib/src/plugin/trina_lazy_pagination.dart:626
Duplicated block (19 lines × 2) · ×4lib/src/model/column_types/trina_column_type_date.dart:55
Duplicated block (18 lines × 2) · ×4lib/src/ui/trina_body_columns.dart:99

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

What to do

  1. Resolve the 8 Duplicated block (21 lines × 2) finding(s) in Code Duplication — start with column_state.dart, trina_horizontal_scroll_bar.dart, cell_selection_screen.dart. — One of this dimension's main actionable groups (8 warning-level).
  2. Resolve the 7 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with trina_change_notifier_filter.dart, trina_left_frozen_columns.dart, dragging_row_state.dart. — One of this dimension's main actionable groups (7 warning-level).
  3. Resolve the 5 Duplicated block (23 lines × 2) finding(s) in Code Duplication — start with trina_lazy_pagination.dart, trina_visibility_layout.dart, cell_selection_screen.dart. — One of this dimension's main actionable groups (5 warning-level).

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

D6 · Cohesion (LCOM4)8.5 / 10Strong✓ 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 8.5 / 10 · rule-coverage 100% · ceiling Verified

28 of 228 classes have LCOM4 above 3.

Low cohesion: _RenderSingleChildViewport (LCOM4 21) · ×28lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:339

What to do

  1. Resolve the 28 Low cohesion finding(s) in Cohesion (LCOM4) — start with trina_smooth_scrollable.dart (2), trina_linked_scroll_controller.dart (2), trina_column_title.dart (2). — One of this dimension's main actionable groups (28 warning-level).

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

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

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

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

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

0 of 69 resolved pub package(s) use a banned license. Licences were read from pub.dev's analysis of each package's licence file. ★ This repository commits no pubspec.lock (Dart's guidance for a package), so the graph was closed here: the 6 package(s) its pubspec declares under dependencies, and transitively every package their published pubspecs declare, each at the newest release its constraint admits — the release a fresh `pub get` picks wherever constraints agree; where two disagree the first to reach the package was taken. dev_dependencies are not part of it. The packages the `flutter`, `flutter_localizations` SDK itself pins are the toolchain's and were not reached. pub.dev analyses only recent releases, so for 2 package(s) locked at an older version the licence read is that of the package's latest analysed release, not of the locked one.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.5 / 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 9.5 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: lib/src/trina_grid_configuration.dart (10×59=590); lib/src/trina_grid.dart (6×20=120)

Hotspot: lib/src/trina_grid_configuration.dart · ×2lib/src/trina_grid_configuration.dart:3103

What to do

  1. Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with trina_grid_configuration.dart, trina_grid.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.

D16 · Bus Factor8.6 / 10Strong✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

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

14 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is lib/src/manager/state/selecting_state.dart. Counted over 101 of the 155 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D17 · Explicit Debt10.0 / 10Stronggated by 7 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

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

TodoComment · ×7lib/src/manager/state/column_state.dart:603

What to do

  1. Resolve the 7 TodoComment finding(s) in Explicit Debt — start with filtered_list.dart (3), column_state.dart, row_group_state.dart. — One of this dimension's main actionable groups (7 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

1 of 1 documentation facets pass in full. 57 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

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

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

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

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

No architecture decision records were found.

No ADRs foundpubspec.yaml:23

What to do

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

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)9.7 / 10Adequategated by 5 critical findings✓ 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 9.7 / 10 · rule-coverage 100% · ceiling Documented

7 finding(s): 0 critical, 5 high, 0 medium, 2 low. 5 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. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED

What to do

  1. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 recommendation-level).
  2. No action in Static Analysis (SAST) — all 5 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 (5 issue-level, 0 of them charged here).

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

D35 · Change Coupling9.9 / 10Stronggated by 1 serious finding✓ 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: trina_horizontal_scroll_bar.dart↔trina_vertical_scroll_bar.dart 83%

Change coupling: trina_horizontal_scroll_bar.dart ↔ trina_vertical_scroll_bar.dartlib/src/widgets/trina_horizontal_scroll_bar.dart:1

What to do

  1. Resolve the 1 Change coupling finding(s) in Change Coupling — start with trina_horizontal_scroll_bar.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.

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

AX4 · Dependency direction10.0 / 10Exemplary✓ 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.

AX6 · Interface segregation9.2 / 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.

  • `ICellState` declares 16 abstract methods: `currentCell`, `currentCellPosition`, `firstCell`, `setCurrentCellPosition`, `updateCurrentCellPosition`, `cellPositionByCellKey`, `columnIdxByCellKeyAndRowIdx`, `clearCurrentCell`, `setCurrentCell`, `canMoveCell`, `canNotMoveCell`, `canChangeCellValue`, `canNotChangeCellValue`, `filteredCellValue`, `isCurrentCell`, `isInvalidCellPosition`. 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. — lib/src/manager/state/cell_state.dart:4
  • `IColumnState` declares 38 abstract methods: `columns`, `refColumns`, `columnIndexes`, `columnIndexesForShowFrozen`, `columnsWidth`, `leftFrozenColumns`, `leftFrozenColumnIndexes`, `leftFrozenColumnsWidth`, `rightFrozenColumns`, `rightFrozenColumnIndexes`, `rightFrozenColumnsWidth`, `bodyColumns`, `bodyColumnIndexes`, `bodyColumnsWidth`, `currentColumn`, `currentColumnField`, `hasSortedColumn`, `getSortedColumn`, `columnIndexesByShowFrozen`, `toggleFrozenColumn`, `toggleSortColumn`, `columnIndex`, `insertColumns`, `removeColumns`, `moveColumn`, `resizeColumn`, `autoFitColumn`, `hideColumn`, `hideColumns`, `sortAscending`, `sortDescending`, `sortBySortIdx`, `clearSorting`, `sortedColumns`, `showSetColumnsPopup`, `limitResizeColumn`, `limitMoveColumn`, `limitToggleFrozenColumn`. 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. — lib/src/manager/state/column_state.dart:9
  • `IEditingState` declares 16 abstract methods: `isEditing`, `autoEditing`, `textEditingController`, `onValidationFailed`, `editCellRenderer`, `isEditableCell`, `readOnlyGeneration`, `refreshReadOnly`, `setEditing`, `setAutoEditing`, `setTextEditingController`, `toggleEditing`, `pasteCellValue`, `castValueByColumnType`, `changeCellValue`, `updateRowCells`. 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. — lib/src/manager/state/editing_state.dart:6
  • `IGridState` declares 33 abstract methods: `gridKey`, `keyManager`, `eventManager`, `configuration`, `mode`, `onChanged`, `onSelected`, `onSorted`, `onRowChecked`, `onRowDoubleTap`, `onRowSecondaryTap`, `onRowEnter`, `onRowExit`, `onRowsMoved`, `onBeforeActiveCellChange`, `onActiveCellChanged`, `onColumnsMoved`, `columnMenuDelegate`, `createHeader`, `createFooter`, `selectDateCallback`, `localeText`, `style`, `sortOnlyEvent`, `filterOnlyEvent`, `setKeyManager`, `setEventManager`, `setConfiguration`, `setGridMode`, `resetCurrentState`, `handleOnSelected`, `setSortOnlyEvent`, `setFilterOnlyEvent`. 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. — lib/src/manager/state/grid_state.dart:4
  • `ILayoutState` declares 59 abstract methods: `resizingChangeNotifier`, `maxWidth`, `maxHeight`, `headerHeight`, `footerHeight`, `columnRowContainerHeight`, `rowContainerHeight`, `gridGlobalOffset`, `showFrozenColumn`, `showColumnTitle`, `showColumnFooter`, `showColumnFilter`, `showHeader`, `showFooter`, `showLoading`, `loadingLevel`, `customLoadingWidget`, `hasLeftFrozenColumns`, `hasRightFrozenColumns`, `headerBottomOffset`, `footerTopOffset`, `columnHeight`, `columnFooterHeight`, `columnGroupHeight`, `columnFilterHeight`, `columnBottomOffset`, `rowsTopOffset`, `rowHeight`, `rowTotalHeight`, `bodyTopOffset`, `bodyLeftOffset`, `bodyRightOffset`, `bodyLeftScrollOffset`, `bodyRightScrollOffset`, `bodyUpScrollOffset`, `bodyDownScrollOffset`, `leftFrozenRightOffset`, `rightFrozenLeftOffset`, `rightBlankOffset`, `scrollOffsetByFrozenColumn`, and 19 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. — lib/src/manager/state/layout_state.dart:5
  • `IRowGroupState` declares 25 abstract methods: `hasRowGroups`, `enabledRowGroups`, `rowGroupDelegate`, `iterateAllMainRowGroup`, `iterateAllRowGroup`, `iterateAllRowAndGroup`, `iterateAllRow`, `iterateFilteredMainRowGroup`, `iterateMainRowGroup`, `iterateRowGroup`, `iterateRowAndGroup`, `iterateRow`, `isMainRow`, `isNotMainGroupedRow`, `isExpandedGroupedRow`, `setRowGroup`, `toggleExpandedRowGroup`, `expandAllRowGroups`, `collapseAllRowGroups`, `setRowGroupFilter`, `sortRowGroup`, `insertRowGroup`, `removeRowAndGroupByKey`, `removeColumnsInRowGroupByColumn`, `updateRowGroupByHideColumn`. 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. — lib/src/manager/state/row_group_state.dart:21
  • `IRowState` declares 35 abstract methods: `rows`, `refRows`, `checkedRows`, `checkedRowsViaSelect`, `unCheckedRows`, `hasCheckedRow`, `hasUnCheckedRow`, `tristateCheckedRow`, `currentRowIdx`, `currentRow`, `rowWrapper`, `rowColorCallback`, `cellColorCallback`, `rowTextStyleCallback`, `cellTextStyleCallback`, `getRowIdxByOffset`, `getRowByIdx`, `getNewRow`, `getNewRows`, `setRowChecked`, `insertRows`, `prependNewRows`, `prependRows`, `appendNewRows`, `appendRows`, `removeCurrentRow`, `removeRows`, `removeAllRows`, `moveRowsByOffset`, `moveRowsByIndex`, `toggleAllRowChecked`, `setRowHeight`, `resetRowHeight`, `resetAllRowHeights`, `getRowHeight`. 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. — lib/src/manager/state/row_state.dart:5
  • `ISelectingState` declares 21 abstract methods: `isSelecting`, `selectingMode`, `currentSelectingPosition`, `currentSelectingPositionList`, `hasCurrentSelectingPosition`, `currentSelectingRows`, `currentSelectingText`, `setSelecting`, `setSelectingMode`, `setAllCurrentSelecting`, `setCurrentSelectingPosition`, `setCurrentSelectingPositionByCellKey`, `setCurrentSelectingPositionWithOffset`, `setCurrentSelectingRowsByRange`, `clearCurrentSelecting`, `clearRangeSelections`, `toggleSelectingRow`, `isSelectingInteraction`, `isSelectedRow`, `isSelectedCell`, `handleAfterSelectingRow`. 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. — lib/src/manager/state/selecting_state.dart:8

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
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.

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.

M1 · Documentation (README)8.0 / 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 documentation2.0 / 10Critical✓ Tool-verified

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

P1 · CI/CD 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 & versioning10.0 / 10Exemplary○ Nothing flagged

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.

P2 · Observability0.0 / 10Critical✓ 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.

  • No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.

What to do

  • Write a diagnostic trail the user can hand back with a bug report: log through `package:logging` to a file in the app's support directory that a report can attach. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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

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

  • No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:3
  • `example/android/build.gradle` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — example/android/build.gradle:7

What to do

  • Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
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.

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

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

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

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

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

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

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

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

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

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.

X17 · Uncapped recursion over a caller-supplied document3.5 / 10Weak✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `TrinaRow.fromJson` is public and takes `Map<String, dynamic> json` from its caller, and it calls itself at line 251 (`TrinaRow.fromJson`) with a piece of `json` — and nowhere in `TrinaRow.fromJson` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `TrinaRow.fromJson` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — lib/src/model/trina_row.dart:251

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

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.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

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.

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 … 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.

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.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling4.0 / 10Weak✓ 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. (×2) — lib/src/manager/state/cell_state.dart:351, lib/src/helper/trina_date_time_helper.dart:45

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.

X5 · Nullable reference types8.1 / 10Strong✓ 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.

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 Health71.0StrongSolid.
Architecture95.5ExemplarySolid.
Maturity67.1Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness46.8Weak — gated by P2, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security99.1ExemplarySolid.
Performance100.0ExemplaryStrongest area.
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.

  • D36 Supply-chain Provenance & Signing — 2 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • P12 CI test-gate honesty — 2 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • X10 Duplicated predicate — 20 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for

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

  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 66 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — Not applicable: this repository's Dart imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Kotlin imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Swift imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. 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.
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an Isar, ObjectBox, Floor or Hive entity, or a Serverpod table model — and no database or data-store client (sqflite, Drift, Isar, Hive, Realm, Firestore, Supabase, postgres, …) in the source either, so this repository keeps no data at rest for these controls to protect.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server another machine can reach (no HttpServer or shelf server bound beyond loopback, no dart_frog route, no Serverpod endpoint, no Conduit, Alfred or Angel application) and keeps no data in a hosted backend. Access control is therefore N/A here — a Flutter app or pub package is authorized by the server it calls, not by itself; hiding a screen authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D10 Test Quality — ~42222 lines of test source are present (.dart) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — no .dart test runner
  • D12 Dependency Hygiene — Not scored — 4 Maven/Gradle manifest(s) were read, stating a version for 0 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D21 Naming Consistency — Naming consistency does not read html yet; not measured.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .dart, .kt, .swift, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • 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.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Dart pubspec.yaml — not scanned yet).
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D34 Knowledge Freshness — knowledge concentrated in recent work — freshness signal contradicted by repo activity
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Dart pubspec.yaml — not scanned yet).
  • D5 Coupling — Not applicable — this pub build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • 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
  • 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
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Dart source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for 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.
  • S1 Web-Security Posture — No web surface: 156 Dart file(s) were read for weak hashes and ciphers, key material fixed in the source and disabled TLS certificate validation, and none was found. This repository serves no HTTP of its own — no server framework among its pubspec dependencies, no `HttpServer` bound and no shelf, dart_frog or serverpod import in its production source or `bin/`, no web build target — so HTTPS enforcement, HSTS, cookie flags and input validation are N/A here, as they are for a C# library or worker. If this codebase starts serving HTTP, the dimension reactivates automatically.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X2 Cancellation propagation — no C# was loaded; this repository's Dart was read, and no request in it can be cancelled by a caller (Dio, or package:http's Abortable requests) — package:http's get and post, HttpClient and Firebase or gRPC stubs offer their callers no token to take
  • X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. Dart isolates share no mutable memory: a value sent to another isolate arrives as a copy, and callbacks within one isolate run one at a time on its event loop, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
  • X28 Index access outside its own emptiness guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Dart was read, and it logs through none: package:logging, package:logger, talker and dart:developer take one finished message and no template arguments or fields (as log4net does in C#), so an interpolated message there loses nothing the API could have kept. Sentry's structured logs (`Sentry.logger`) would be judged.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

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

Critical — 5 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
Serious — 329 finding(s)
D6 · Cohesion (LCOM4) · Low cohesion · ×28
  • Low cohesion: _RenderSingleChildViewport (LCOM4 21) lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:339 — _RenderSingleChildViewport's methods fall into 21 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 21 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: TrinaColumnFilterState (LCOM4 11) lib/src/ui/columns/trina_column_filter.dart:31 — TrinaColumnFilterState'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: TrinaColumnTypeBoolean (LCOM4 10) lib/src/model/column_types/trina_column_type_boolean.dart:7 — TrinaColumnTypeBoolean'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: TrinaVisibilityLayoutRenderObjectElement (LCOM4 8) lib/src/ui/miscellaneous/trina_visibility_layout.dart:53 — TrinaVisibilityLayoutRenderObjectElement's methods fall into 8 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 8 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: TrinaSmoothScrollableState (LCOM4 7) lib/src/ui/scrolls/trina_smooth_scrollable.dart:500 — TrinaSmoothScrollableState's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _HeaderState (LCOM4 6) demo/lib/screen/feature/add_and_remove_column_row_screen.dart:169 — _HeaderState'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: FilteredList (LCOM4 6) lib/src/helper/filtered_list.dart:76 — FilteredList'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: _PageSizeDropdownPaginationWidgetState (LCOM4 6) lib/src/plugin/trina_lazy_pagination.dart:508 — _PageSizeDropdownPaginationWidgetState'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: TrinaPaginationState (LCOM4 6) lib/src/plugin/trina_pagination.dart:76 — TrinaPaginationState'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: _LinkedScrollController (LCOM4 6) lib/src/widgets/trina_linked_scroll_controller.dart:135 — _LinkedScrollController'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: _PopupRoute (LCOM4 6) lib/src/widgets/trina_popup.dart:265 — _PopupRoute'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: TrinaKeyManagerEvent (LCOM4 5) lib/src/helper/trina_key_manager_event.dart:4 — TrinaKeyManagerEvent'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: TrinaColumnTypeCustom (LCOM4 5) lib/src/model/column_types/trina_column_type_custom.dart:6 — TrinaColumnTypeCustom'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: TrinaColumn (LCOM4 5) lib/src/model/trina_column.dart:31 — TrinaColumn'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: TrinaAggregateColumnFooterState (LCOM4 5) lib/src/plugin/trina_aggregate_column_footer.dart:207 — TrinaAggregateColumnFooterState'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: TrinaColumnTitleState (LCOM4 5) lib/src/ui/columns/trina_column_title.dart:27 — TrinaColumnTitleState'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: _ColumnTextWidgetState (LCOM4 5) lib/src/ui/columns/trina_column_title.dart:609 — _ColumnTextWidgetState'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: _RowContainerWidgetState (LCOM4 5) lib/src/ui/trina_base_row.dart:233 — _RowContainerWidgetState'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: _LinkedScrollActivity (LCOM4 5) lib/src/widgets/trina_linked_scroll_controller.dart:337 — _LinkedScrollActivity'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: _HeaderState (LCOM4 4) demo/lib/screen/feature/check_view_port_visible_columns_screen.dart:77 — _HeaderState'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: TrinaColumnTypeText (LCOM4 4) lib/src/model/column_types/trina_column_type_text.dart:6 — TrinaColumnTypeText'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: TrinaColumnTypeTime (LCOM4 4) lib/src/model/column_types/trina_column_type_time.dart:7 — TrinaColumnTypeTime'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: _TrinaDefaultCellState (LCOM4 4) lib/src/ui/cells/trina_default_cell.dart:63 — _TrinaDefaultCellState'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: _RenderScrollSemantics (LCOM4 4) lib/src/ui/scrolls/trina_smooth_scrollable.dart:1815 — _RenderScrollSemantics'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: TrinaBodyColumnsState (LCOM4 4) lib/src/ui/trina_body_columns.dart:17 — TrinaBodyColumnsState'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.
  • + 3 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×8
  • FileTooLong: src/trina_grid_configuration.dart lib/src/trina_grid_configuration.dart — FileTooLong — 2258 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1758 over it, 4.52× 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: scrolls/trina_smooth_scrollable.dart lib/src/ui/scrolls/trina_smooth_scrollable.dart — FileTooLong — 1042 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 542 over it, 2.08× 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: src/trina_grid.dart lib/src/trina_grid.dart — FileTooLong — 928 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 428 over it, 1.86× 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: widgets/trina_dropdown_menu.dart lib/src/ui/widgets/trina_dropdown_menu.dart — FileTooLong — 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 over it, 1.53× 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: state/column_state.dart lib/src/manager/state/column_state.dart — FileTooLong — 654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 154 over it, 1.31× 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: state/selecting_state.dart lib/src/manager/state/selecting_state.dart — FileTooLong — 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10× 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: ui/trina_base_cell.dart lib/src/ui/trina_base_cell.dart — FileTooLong — 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06× 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: helper/filter_helper.dart lib/src/helper/filter_helper.dart — FileTooLong — 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D3 · God Classes · TooManyMethods · ×8
  • TooManyMethods: ILayoutState lib/src/manager/state/layout_state.dart:5 — TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FilteredList lib/src/helper/filtered_list.dart:76 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: IColumnState lib/src/manager/state/column_state.dart:9 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: TrinaSmoothScrollableState lib/src/ui/scrolls/trina_smooth_scrollable.dart:500 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: TrinaKeyManagerEvent lib/src/helper/trina_key_manager_event.dart:4 — 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: IRowState lib/src/manager/state/row_state.dart:5 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: _RenderSingleChildViewport lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:339 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: IGridState lib/src/manager/state/grid_state.dart:4 — 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.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×8
  • Duplicated block (21 lines × 2) lib/src/manager/state/column_state.dart:768 — lib/src/manager/state/column_state.dart:768-788 | lib/src/manager/state/column_state.dart:799-819 — 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 `lib/src/manager/state/column_state.dart:768` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (21 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:56 — lib/src/widgets/trina_horizontal_scroll_bar.dart:56-76 | lib/src/widgets/trina_vertical_scroll_bar.dart:57-77 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 `lib/src/widgets/trina_horizontal_scroll_bar.dart:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) demo/lib/screen/feature/cell_selection_screen.dart:56 — demo/lib/screen/feature/cell_selection_screen.dart:56-76 | demo/lib/screen/feature/row_selection_screen.dart:55-75 — before extracting anything, compare `demo/lib/screen/feature/cell_selection_screen.dart` and `demo/lib/screen/feature/row_selection_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/cell_selection_screen.dart:56` 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 (21 lines × 2) demo/lib/screen/feature/column_menu_screen.dart:33 — demo/lib/screen/feature/column_menu_screen.dart:33-53 | demo/lib/screen/feature/listing_mode_screen.dart:231-251 — 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 `demo/lib/screen/feature/column_menu_screen.dart:33` 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 (21 lines × 2) demo/lib/screen/feature/column_title_renderer_screen.dart:75 — demo/lib/screen/feature/column_title_renderer_screen.dart:75-95 | demo/lib/screen/feature/column_title_renderer_screen.dart:140-160 — 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 `demo/lib/screen/feature/column_title_renderer_screen.dart:75` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/column_title_renderer_screen.dart:96` calls `Icon`, `SizedBox` and `demo/lib/screen/feature/column_title_renderer_screen.dart:161` 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 (21 lines × 2) demo/lib/screen/feature/frozen_rows_screen.dart:61 — demo/lib/screen/feature/frozen_rows_screen.dart:61-81 | demo/lib/screen/feature/pages_list_screen.dart:128-148 — 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 `demo/lib/screen/feature/frozen_rows_screen.dart:61` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (21 lines × 2) demo/lib/screen/feature/number_type_column_screen.dart:84 — demo/lib/screen/feature/number_type_column_screen.dart:84-104 | demo/lib/screen/feature/text_type_column_screen.dart:61-81 — 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 (21 lines × 2) demo/lib/screen/feature/row_wrapper_frozen_screen.dart:91 — demo/lib/screen/feature/row_wrapper_frozen_screen.dart:91-111 | demo/lib/screen/feature/row_wrapper_screen.dart:51-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 `demo/lib/screen/feature/row_wrapper_frozen_screen.dart:91` 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.
D17 · Explicit Debt · TodoComment · ×7
  • TodoComment lib/src/manager/state/column_state.dart:603 — // todo : Handle (renderer) width — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/manager/state/row_group_state.dart:793 — // todo : reset sortIdx — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/manager/state/row_state.dart:252 — // todo : whether to apply scrolling. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/manager/state/selecting_state.dart:625 — // todo : code cleanup — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/helper/filtered_list.dart:318 — // todo : implement — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/helper/filtered_list.dart:324 — // todo : implement — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment lib/src/helper/filtered_list.dart:330 — // todo : implement — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D3 · God Classes · MethodTooLong · ×7
  • MethodTooLong: TrinaGridLayoutDelegate.performLayout lib/src/trina_grid.dart:1332 — MethodTooLong — performLayout runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28× 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: TrinaGridStyleConfig.copyWith lib/src/trina_grid_configuration.dart:1054 — MethodTooLong — copyWith runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× 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: _TrinaVerticalScrollBarState.build lib/src/widgets/trina_vertical_scroll_bar.dart:175 — MethodTooLong — build runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: _TrinaHorizontalScrollBarState.build lib/src/widgets/trina_horizontal_scroll_bar.dart:174 — MethodTooLong — build runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67× 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: TrinaGridState.build lib/src/trina_grid.dart:1028 — MethodTooLong — build runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40× 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: RowGroupState.insertRowGroup lib/src/manager/state/row_group_state.dart:432 — MethodTooLong — insertRowGroup runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: TrinaColumnFilterState.build lib/src/ui/columns/trina_column_filter.dart:374 — MethodTooLong — build runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× 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 · Duplicated block (10 lines × 2) · ×7
  • Duplicated block (10 lines × 2) lib/src/manager/trina_change_notifier_filter.dart:285 — lib/src/manager/trina_change_notifier_filter.dart:285-295 | lib/src/manager/trina_change_notifier_filter.dart:324-333 — 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 `lib/src/manager/trina_change_notifier_filter.dart:285` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) lib/src/ui/trina_left_frozen_columns.dart:64 — lib/src/ui/trina_left_frozen_columns.dart:64-73 | lib/src/ui/trina_right_frozen_columns.dart:64-73 — before extracting anything, compare `lib/src/ui/trina_left_frozen_columns.dart` and `lib/src/ui/trina_right_frozen_columns.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 (10 lines × 2) lib/src/manager/state/dragging_row_state.dart:77 — lib/src/manager/state/dragging_row_state.dart:77-86 | lib/src/manager/state/hovering_state.dart:21-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 (10 lines × 2) lib/src/ui/trina_left_frozen_columns_footer.dart:33 — lib/src/ui/trina_left_frozen_columns_footer.dart:33-42 | lib/src/ui/trina_right_frozen_columns_footer.dart:33-42 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:129 — lib/src/widgets/trina_horizontal_scroll_bar.dart:129-138 | lib/src/widgets/trina_vertical_scroll_bar.dart:130-139 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) demo/lib/screen/feature/cell_text_style_screen.dart:108 — demo/lib/screen/feature/cell_text_style_screen.dart:108-117 | demo/lib/screen/feature/cell_text_style_screen.dart:138-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.
  • Duplicated block (10 lines × 2) demo/lib/screen/feature/column_filter_methods_screen.dart:251 — demo/lib/screen/feature/column_filter_methods_screen.dart:251-260 | demo/lib/screen/feature/column_filter_methods_screen.dart:263-273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/column_filter_methods_screen.dart:251` 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 (23 lines × 2) · ×5
  • Duplicated block (23 lines × 2) lib/src/plugin/trina_lazy_pagination.dart:626 — lib/src/plugin/trina_lazy_pagination.dart:626-648 | lib/src/plugin/trina_pagination.dart:263-285 — before extracting anything, compare `lib/src/plugin/trina_lazy_pagination.dart` and `lib/src/plugin/trina_pagination.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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 `lib/src/plugin/trina_lazy_pagination.dart:626` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) lib/src/ui/miscellaneous/trina_visibility_layout.dart:180 — lib/src/ui/miscellaneous/trina_visibility_layout.dart:180-202 | lib/src/ui/miscellaneous/trina_visibility_layout.dart:293-315 — 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 `lib/src/ui/miscellaneous/trina_visibility_layout.dart:180` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) demo/lib/screen/feature/cell_selection_screen.dart:104 — demo/lib/screen/feature/cell_selection_screen.dart:104-126 | demo/lib/screen/feature/editing_state_screen.dart:66-88 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/cell_selection_screen.dart:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) demo/lib/screen/feature/column_resizing_screen.dart:48 — demo/lib/screen/feature/column_resizing_screen.dart:48-70 | demo/lib/screen/feature/frozen_rows_screen.dart:67-89 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/column_resizing_screen.dart:48` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/column_resizing_screen.dart:45` calls `Text` and `demo/lib/screen/feature/frozen_rows_screen.dart:66` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (23 lines × 2) demo/lib/screen/feature/custom_pagination_screen.dart:96 — demo/lib/screen/feature/custom_pagination_screen.dart:96-118 | demo/lib/screen/feature/pages_list_screen.dart:134-156 — before extracting anything, compare `demo/lib/screen/feature/custom_pagination_screen.dart` and `demo/lib/screen/feature/pages_list_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `demo/lib/screen/feature/custom_pagination_screen.dart:96` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/custom_pagination_screen.dart:95` calls `Text` and `demo/lib/screen/feature/pages_list_screen.dart:133` 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.
D3 · God Classes · ClassTooLong · ×4
  • ClassTooLong: TrinaGridLocaleText lib/src/trina_grid_configuration.dart:1931 — ClassTooLong — 1086 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 686 over it, 2.72× 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: TrinaGridStyleConfig lib/src/trina_grid_configuration.dart:430 — ClassTooLong — 669 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 269 over it, 1.67× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: TrinaGridState lib/src/trina_grid.dart:616 — ClassTooLong — 408 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 8 over it, 1.02× 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: TrinaSmoothScrollableState lib/src/ui/scrolls/trina_smooth_scrollable.dart:500 — ClassTooLong — 403 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 3 over it, 1.01× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×4
  • Duplicated block (19 lines × 2) lib/src/model/column_types/trina_column_type_date.dart:55 — lib/src/model/column_types/trina_column_type_date.dart:55-73 | lib/src/model/column_types/trina_column_type_date_time.dart:52-70 — before extracting anything, compare `lib/src/model/column_types/trina_column_type_date.dart` and `lib/src/model/column_types/trina_column_type_date_time.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (19 lines × 2) lib/src/ui/scrolls/trina_smooth_scrollable.dart:761 — lib/src/ui/scrolls/trina_smooth_scrollable.dart:761-779 | lib/src/ui/scrolls/trina_smooth_scrollable.dart:790-808 — 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 `lib/src/ui/scrolls/trina_smooth_scrollable.dart:761` 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) demo/lib/screen/feature/boolean_type_column_screen.dart:129 — demo/lib/screen/feature/boolean_type_column_screen.dart:129-147 | demo/lib/screen/feature/custom_type_column_screen.dart:249-267 — 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 `demo/lib/screen/feature/boolean_type_column_screen.dart:129` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (19 lines × 2) demo/lib/screen/feature/row_moving_screen.dart:74 — demo/lib/screen/feature/row_moving_screen.dart:74-92 | demo/lib/screen/feature/row_with_checkbox_screen.dart:81-99 — before extracting anything, compare `demo/lib/screen/feature/row_moving_screen.dart` and `demo/lib/screen/feature/row_with_checkbox_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 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 `demo/lib/screen/feature/row_moving_screen.dart:74` 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 (18 lines × 2) · ×4
  • Duplicated block (18 lines × 2) lib/src/ui/trina_body_columns.dart:99 — lib/src/ui/trina_body_columns.dart:99-116 | lib/src/ui/trina_body_columns_footer.dart:68-85 — before extracting anything, compare `lib/src/ui/trina_body_columns.dart` and `lib/src/ui/trina_body_columns_footer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 `lib/src/ui/trina_body_columns.dart:99` 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) demo/lib/screen/empty_screen.dart:22 — demo/lib/screen/empty_screen.dart:22-39 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:27-44 — 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 `demo/lib/screen/empty_screen.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.
  • Duplicated block (18 lines × 2) demo/lib/screen/feature/dual_mode_screen.dart:167 — demo/lib/screen/feature/dual_mode_screen.dart:167-184 | demo/lib/screen/feature/dual_mode_screen.dart:193-210 — 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 `demo/lib/screen/feature/dual_mode_screen.dart:167` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/dual_mode_screen.dart:166` calls `addListener` and `demo/lib/screen/feature/dual_mode_screen.dart:192` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (18 lines × 2) demo/lib/screen/feature/edit_cell_renderer_screen.dart:60 — demo/lib/screen/feature/edit_cell_renderer_screen.dart:60-77 | demo/lib/screen/feature/edit_cell_renderer_screen.dart:279-296 — 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 `demo/lib/screen/feature/edit_cell_renderer_screen.dart:60` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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) lib/src/ui/trina_left_frozen_rows.dart:54 — lib/src/ui/trina_left_frozen_rows.dart:54-68 | lib/src/ui/trina_right_frozen_rows.dart:54-68 — before extracting anything, compare `lib/src/ui/trina_left_frozen_rows.dart` and `lib/src/ui/trina_right_frozen_rows.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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 `lib/src/ui/trina_left_frozen_rows.dart:54` 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 (15 lines × 2) lib/src/widgets/boolean_column_filter.dart:150 — lib/src/widgets/boolean_column_filter.dart:150-164 | lib/src/widgets/multi_select_column_filter.dart:229-243 — before extracting anything, compare `lib/src/widgets/boolean_column_filter.dart` and `lib/src/widgets/multi_select_column_filter.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `lib/src/widgets/multi_select_column_filter.dart:244` calls `_buildClearButton` and `lib/src/widgets/boolean_column_filter.dart:165` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:333 — lib/src/widgets/trina_horizontal_scroll_bar.dart:333-347 | lib/src/widgets/trina_vertical_scroll_bar.dart:325-339 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) demo/lib/screen/feature/column_footer_screen.dart:78 — demo/lib/screen/feature/column_footer_screen.dart:78-92 | demo/lib/screen/feature/column_footer_screen.dart:95-109 — 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 `demo/lib/screen/feature/column_footer_screen.dart:78` 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 (6 lines × 2) · ×4
  • Duplicated block (6 lines × 2) lib/src/model/column_types/trina_column_type_date.dart:84 — lib/src/model/column_types/trina_column_type_date.dart:84-89 | lib/src/model/column_types/trina_column_type_date_time.dart:81-86 — before extracting anything, compare `lib/src/model/column_types/trina_column_type_date.dart` and `lib/src/model/column_types/trina_column_type_date_time.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) lib/src/ui/trina_left_frozen_columns.dart:75 — lib/src/ui/trina_left_frozen_columns.dart:75-80 | lib/src/ui/trina_right_frozen_columns.dart:75-80 — before extracting anything, compare `lib/src/ui/trina_left_frozen_columns.dart` and `lib/src/ui/trina_right_frozen_columns.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 (6 lines × 2) lib/src/ui/trina_left_frozen_columns_footer.dart:44 — lib/src/ui/trina_left_frozen_columns_footer.dart:44-49 | lib/src/ui/trina_right_frozen_columns_footer.dart:44-49 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) lib/src/ui/trina_body_columns.dart:92 — lib/src/ui/trina_body_columns.dart:92-97 | lib/src/ui/trina_body_columns_footer.dart:61-66 — before extracting anything, compare `lib/src/ui/trina_body_columns.dart` and `lib/src/ui/trina_body_columns_footer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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.
D4 · Code Duplication · Edited copy of a member (30 corresponding lines) · ×3
  • Edited copy of a member (30 corresponding lines) lib/src/manager/state/column_state.dart:766 — lib/src/manager/state/column_state.dart:766-795 | lib/src/manager/state/column_state.dart:797-826 — 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) lib/src/ui/trina_body_columns.dart:99 — lib/src/ui/trina_body_columns.dart:99-132 | lib/src/ui/trina_body_columns_footer.dart:68-97 — 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) demo/lib/screen/feature/moving_screen.dart:33 — demo/lib/screen/feature/moving_screen.dart:33-64 | demo/lib/screen/feature/selection_type_column_screen.dart:180-209 — 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 · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) lib/src/helper/trina_aggregate_helper.dart:7 — lib/src/helper/trina_aggregate_helper.dart:7-26 | lib/src/helper/trina_aggregate_helper.dart:32-51 — 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 `lib/src/helper/trina_aggregate_helper.dart:7` 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 (20 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:140 — lib/src/widgets/trina_horizontal_scroll_bar.dart:140-159 | lib/src/widgets/trina_vertical_scroll_bar.dart:141-160 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 (20 lines × 2) demo/lib/screen/feature/listing_mode_screen.dart:78 — demo/lib/screen/feature/listing_mode_screen.dart:78-97 | demo/lib/screen/feature/listing_mode_screen.dart:156-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/listing_mode_screen.dart:78` 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.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×3
  • Duplicated block (17 lines × 2) lib/src/model/column_types/trina_column_type_date.dart:91 — lib/src/model/column_types/trina_column_type_date.dart:91-107 | lib/src/model/column_types/trina_column_type_date_time.dart:88-104 — before extracting anything, compare `lib/src/model/column_types/trina_column_type_date.dart` and `lib/src/model/column_types/trina_column_type_date_time.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (17 lines × 2) lib/src/ui/trina_left_frozen_rows.dart:70 — lib/src/ui/trina_left_frozen_rows.dart:70-86 | lib/src/ui/trina_right_frozen_rows.dart:70-86 — before extracting anything, compare `lib/src/ui/trina_left_frozen_rows.dart` and `lib/src/ui/trina_right_frozen_rows.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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 (17 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:179 — lib/src/widgets/trina_horizontal_scroll_bar.dart:179-195 | lib/src/widgets/trina_vertical_scroll_bar.dart:188-204 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 (16 lines × 2) · ×3
  • Duplicated block (16 lines × 2) lib/src/helper/trina_aggregate_helper.dart:57 — lib/src/helper/trina_aggregate_helper.dart:57-72 | lib/src/helper/trina_aggregate_helper.dart:78-93 — 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 `lib/src/helper/trina_aggregate_helper.dart:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) demo/lib/screen/feature/add_rows_asynchronously.dart:112 — demo/lib/screen/feature/add_rows_asynchronously.dart:112-127 | demo/lib/screen/feature/currency_type_column_screen.dart:104-119 — 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 `demo/lib/screen/feature/add_rows_asynchronously.dart:112` 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 (16 lines × 2) demo/lib/screen/feature/custom_footer_screen.dart:26 — demo/lib/screen/feature/custom_footer_screen.dart:26-41 | demo/lib/screen/feature/dynamic_row_height_demo.dart:39-54 — 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 `demo/lib/screen/feature/custom_footer_screen.dart:26` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×3
  • Duplicated block (11 lines × 2) lib/src/manager/state/row_state.dart:476 — lib/src/manager/state/row_state.dart:476-486 | lib/src/manager/state/row_state.dart:505-515 — 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 `lib/src/manager/state/row_state.dart:476` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) lib/src/ui/trina_left_frozen_columns_footer.dart:51 — lib/src/ui/trina_left_frozen_columns_footer.dart:51-61 | lib/src/ui/trina_right_frozen_columns_footer.dart:51-61 — 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 (11 lines × 2) demo/lib/screen/feature/custom_type_column_screen.dart:128 — demo/lib/screen/feature/custom_type_column_screen.dart:128-138 | demo/lib/screen/feature/custom_type_column_screen.dart:159-169 — 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 `demo/lib/screen/feature/custom_type_column_screen.dart:128` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/custom_type_column_screen.dart:170` calls `Chip` and `demo/lib/screen/feature/custom_type_column_screen.dart:139` 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 (8 lines × 2) · ×3
  • Duplicated block (8 lines × 2) lib/src/manager/state/filtering_row_state.dart:270 — lib/src/manager/state/filtering_row_state.dart:270-277 | lib/src/manager/state/filtering_row_state.dart:284-291 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) lib/src/plugin/trina_lazy_pagination.dart:581 — lib/src/plugin/trina_lazy_pagination.dart:581-588 | lib/src/plugin/trina_pagination.dart:215-222 — before extracting anything, compare `lib/src/plugin/trina_lazy_pagination.dart` and `lib/src/plugin/trina_pagination.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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 (8 lines × 2) lib/src/ui/trina_left_frozen_rows.dart:31 — lib/src/ui/trina_left_frozen_rows.dart:31-38 | lib/src/ui/trina_right_frozen_rows.dart:31-38 — before extracting anything, compare `lib/src/ui/trina_left_frozen_rows.dart` and `lib/src/ui/trina_right_frozen_rows.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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 × 2) · ×3
  • Duplicated block (7 lines × 2) lib/src/manager/state/row_group_state.dart:296 — lib/src/manager/state/row_group_state.dart:296-302 | lib/src/manager/state/row_group_state.dart:737-743 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) lib/src/plugin/trina_lazy_pagination.dart:541 — lib/src/plugin/trina_lazy_pagination.dart:541-547 | lib/src/plugin/trina_pagination.dart:163-169 — before extracting anything, compare `lib/src/plugin/trina_lazy_pagination.dart` and `lib/src/plugin/trina_pagination.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) demo/ios/Runner/AppDelegate.swift:6 — demo/ios/Runner/AppDelegate.swift:6-12 | example/ios/Runner/AppDelegate.swift:6-12 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×3
  • Duplicated block (21 lines × 3) demo/lib/screen/feature/cell_renderer_screen.dart:57 — demo/lib/screen/feature/cell_renderer_screen.dart:57-77 | demo/lib/screen/feature/dark_mode_screen.dart:44-64 | demo/lib/screen/feature/theme_switching_screen.dart:44-64 — before extracting anything, compare `demo/lib/screen/feature/dark_mode_screen.dart` and `demo/lib/screen/feature/theme_switching_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 179 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 `demo/lib/screen/feature/cell_renderer_screen.dart:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (21 lines × 3) demo/lib/screen/feature/cell_renderer_screen.dart:226 — demo/lib/screen/feature/cell_renderer_screen.dart:226-246 | demo/lib/screen/feature/row_with_checkbox_screen.dart:74-94 | demo/lib/screen/feature/selection_type_column_screen.dart:182-202 — before extracting anything, compare `demo/lib/screen/feature/cell_renderer_screen.dart` and `demo/lib/screen/feature/row_with_checkbox_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 `demo/lib/screen/feature/cell_renderer_screen.dart:226` 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 (21 lines × 3) demo/lib/screen/feature/dark_mode_screen.dart:50 — demo/lib/screen/feature/dark_mode_screen.dart:50-70 | demo/lib/screen/feature/theme_integration_screen.dart:51-71 | demo/lib/screen/feature/theme_switching_screen.dart:50-70 — before extracting anything, compare `demo/lib/screen/feature/dark_mode_screen.dart` and `demo/lib/screen/feature/theme_switching_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 179 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 `demo/lib/screen/feature/dark_mode_screen.dart:50` 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 (18–19 lines × 3) · ×3
  • Duplicated block (18–19 lines × 3) demo/lib/screen/feature/cell_color_screen.dart:213 — demo/lib/screen/feature/cell_color_screen.dart:213-231 | demo/lib/screen/feature/cell_text_style_screen.dart:221-238 | demo/lib/screen/feature/row_color_screen.dart:170-188 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.dart:213` 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–19 lines × 3) demo/lib/screen/feature/cell_selection_screen.dart:49 — demo/lib/screen/feature/cell_selection_screen.dart:49-66 | demo/lib/screen/feature/excel_like_selection_screen.dart:58-76 | demo/lib/screen/feature/row_selection_screen.dart:48-65 — before extracting anything, compare `demo/lib/screen/feature/cell_selection_screen.dart` and `demo/lib/screen/feature/excel_like_selection_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 `demo/lib/screen/feature/cell_selection_screen.dart:49` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (18–19 lines × 3) demo/lib/screen/feature/column_footer_screen.dart:147 — demo/lib/screen/feature/column_footer_screen.dart:147-165 | demo/lib/screen/feature/column_title_renderer_screen.dart:206-223 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:172-190 — before extracting anything, compare `demo/lib/screen/feature/column_footer_screen.dart` and `demo/lib/screen/feature/row_infinity_scroll_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 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 `demo/lib/screen/feature/column_footer_screen.dart:147` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/column_footer_screen.dart:166` calls `setSelectingMode` and `demo/lib/screen/feature/row_infinity_scroll_screen.dart:191` 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.
D15 · Churn × Complexity Hotspots · Hotspot · ×2
  • Hotspot: lib/src/trina_grid_configuration.dart lib/src/trina_grid_configuration.dart:3103 — lib/src/trina_grid_configuration.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in TrinaGridLocaleText.== at line 3103. 4 of those changes were fix/bug commits, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-02 17:55:30 +03:00' --until='2026-10-31 17:55:30 +03:00' --full-history --no-merges -- lib/src/trina_grid_configuration.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: lib/src/trina_grid.dart lib/src/trina_grid.dart:1028 — lib/src/trina_grid.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in TrinaGridState.build at line 1028. 3 of those changes were fix/bug commits, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-02 17:55:30 +03:00' --until='2026-10-31 17:55:30 +03:00' --full-history --no-merges -- lib/src/trina_grid.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D36 · Supply-chain Provenance & Signing · REDACTED · ×2
  • 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) lib/src/widgets/trina_horizontal_scroll_bar.dart:85 — lib/src/widgets/trina_horizontal_scroll_bar.dart:85-100 | lib/src/widgets/trina_horizontal_scroll_bar.dart:102-127 | lib/src/widgets/trina_vertical_scroll_bar.dart:86-101 | lib/src/widgets/trina_vertical_scroll_bar.dart:103-128 — 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) demo/lib/screen/feature/custom_pagination_screen.dart:39 — demo/lib/screen/feature/custom_pagination_screen.dart:39-87 | demo/lib/screen/feature/pages_list_screen.dart:42-126 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:57-162 | demo/lib/screen/feature/row_lazy_pagination_screen.dart:46-130 — 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 (51 corresponding lines) · ×2
  • Edited copy of a member (51 corresponding lines) lib/src/ui/miscellaneous/trina_visibility_layout.dart:165 — lib/src/ui/miscellaneous/trina_visibility_layout.dart:165-227 | lib/src/ui/miscellaneous/trina_visibility_layout.dart:274-324 — 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.
  • Edited copy of a member (51 corresponding lines) demo/lib/widget/trina_contributor_tile.dart:35 — demo/lib/widget/trina_contributor_tile.dart:35-90 | demo/lib/widget/trina_list_tile.dart:49-99 — 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 (36 corresponding lines) · ×2
  • Edited copy of a member (36 corresponding lines) lib/src/plugin/trina_lazy_pagination.dart:612 — lib/src/plugin/trina_lazy_pagination.dart:612-648 | lib/src/plugin/trina_pagination.dart:250-285 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (36 corresponding lines) demo/lib/screen/feature/column_filter_modes_screen.dart:27 — demo/lib/screen/feature/column_filter_modes_screen.dart:27-64 | demo/lib/screen/feature/multiitems_delegate_demo_screen.dart:21-56 — 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 (37 corresponding lines) · ×2
  • Edited copy of a member (37 corresponding lines) lib/src/manager/state/row_group_state.dart:329 — lib/src/manager/state/row_group_state.dart:329-365 | lib/src/manager/state/row_group_state.dart:367-407 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (37 corresponding lines) demo/lib/screen/feature/boolean_type_column_screen.dart:122 — demo/lib/screen/feature/boolean_type_column_screen.dart:122-158 | demo/lib/screen/feature/column_filter_methods_screen.dart:104-144 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×2
  • Edited copy of a member (26 corresponding lines) lib/src/manager/trina_change_notifier_filter.dart:253 — lib/src/manager/trina_change_notifier_filter.dart:253-281 | lib/src/manager/trina_change_notifier_filter.dart:283-308 — 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) lib/src/manager/state/keyboard_state.dart:201 — lib/src/manager/state/keyboard_state.dart:201-226 | lib/src/manager/state/keyboard_state.dart:315-347 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×2
  • Edited copy of a member (28 corresponding lines) lib/src/manager/state/row_state.dart:474 — lib/src/manager/state/row_state.dart:474-501 | lib/src/manager/state/row_state.dart:503-530 — 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) lib/src/widgets/trina_horizontal_scroll_bar.dart:56 — lib/src/widgets/trina_horizontal_scroll_bar.dart:56-83 | lib/src/widgets/trina_vertical_scroll_bar.dart:57-84 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×2
  • Edited copy of a member (33 corresponding lines) lib/src/manager/state/keyboard_state.dart:159 — lib/src/manager/state/keyboard_state.dart:159-199 | lib/src/manager/state/keyboard_state.dart:281-313 — 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) demo/lib/screen/feature/rtl_scrollbar_screen.dart:31 — demo/lib/screen/feature/rtl_scrollbar_screen.dart:31-63 | demo/lib/screen/feature/scroll_physics_screen.dart:60-98 — 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 (22 corresponding lines) · ×2
  • Edited copy of a member (22 corresponding lines) lib/src/ui/trina_left_frozen_rows.dart:47 — lib/src/ui/trina_left_frozen_rows.dart:47-68 | lib/src/ui/trina_right_frozen_rows.dart:47-68 — 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) lib/src/plugin/trina_infinity_scroll_rows.dart:125 — lib/src/plugin/trina_infinity_scroll_rows.dart:125-146 | lib/src/plugin/trina_lazy_pagination.dart:274-296 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×2
  • Edited copy of a member (16 corresponding lines) lib/src/plugin/trina_lazy_pagination.dart:650 — lib/src/plugin/trina_lazy_pagination.dart:650-667 | lib/src/plugin/trina_pagination.dart:287-302 — 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) lib/src/manager/shortcut/trina_grid_shortcut_action.dart:513 — lib/src/manager/shortcut/trina_grid_shortcut_action.dart:513-528 | lib/src/manager/shortcut/trina_grid_shortcut_action.dart:541-556 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×2
  • Edited copy of a member (8 corresponding lines) lib/src/ui/widgets/trina_time_picker.dart:312 — lib/src/ui/widgets/trina_time_picker.dart:312-319 | lib/src/ui/widgets/trina_time_picker.dart:321-328 — 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) lib/src/model/column_types/trina_column_type_custom.dart:42 — lib/src/model/column_types/trina_column_type_custom.dart:42-50 | lib/src/model/trina_column_type_with_number_format.dart:27-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.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×2
  • Edited copy of a member (7 corresponding lines) lib/src/ui/columns/trina_column_filter.dart:128 — lib/src/ui/columns/trina_column_filter.dart:128-134 | lib/src/widgets/multi_line_column_filter.dart:162-168 — 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) lib/src/ui/columns/trina_column_filter.dart:136 — lib/src/ui/columns/trina_column_filter.dart:136-142 | lib/src/widgets/multi_line_column_filter.dart:170-176 — 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 (24–25 lines × 2) · ×2
  • Duplicated block (24–25 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:420 — lib/src/widgets/trina_horizontal_scroll_bar.dart:420-443 | lib/src/widgets/trina_vertical_scroll_bar.dart:406-430 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 `lib/src/widgets/trina_horizontal_scroll_bar.dart:420` 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 (24–25 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:183 — demo/lib/screen/feature/custom_loading_widget_screen.dart:183-206 | demo/lib/screen/feature/loading_options_screen.dart:204-228 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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 `demo/lib/screen/feature/custom_loading_widget_screen.dart:183` 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 (14 lines × 2) · ×2
  • Duplicated block (14 lines × 2) lib/src/ui/cells/text_cell.dart:65 — lib/src/ui/cells/text_cell.dart:65-78 | lib/src/ui/trina_base_cell.dart:423-436 — 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 `lib/src/ui/cells/text_cell.dart:65` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (14 lines × 2) lib/src/model/column_types/trina_column_type_custom.dart:57 — lib/src/model/column_types/trina_column_type_custom.dart:57-70 | lib/src/model/column_types/trina_column_type_text.dart:33-46 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from 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 · Duplicated block (13 lines × 2) · ×2
  • Duplicated block (13 lines × 2) lib/src/ui/cells/popup_cell.dart:45 — lib/src/ui/cells/popup_cell.dart:45-57 | lib/src/ui/cells/text_cell.dart:219-231 — 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 `lib/src/ui/cells/popup_cell.dart:45` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) demo/lib/screen/feature/dynamic_row_height_demo.dart:131 — demo/lib/screen/feature/dynamic_row_height_demo.dart:131-143 | demo/lib/screen/feature/dynamic_row_height_demo.dart:158-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/dynamic_row_height_demo.dart:131` 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) lib/src/model/column_types/trina_column_type_date.dart:75 — lib/src/model/column_types/trina_column_type_date.dart:75-82 | lib/src/model/column_types/trina_column_type_date_time.dart:72-79 | lib/src/model/column_types/trina_column_type_text.dart:19-26 | lib/src/model/column_types/trina_column_type_time.dart:65-72 — before extracting anything, compare `lib/src/model/column_types/trina_column_type_date.dart` and `lib/src/model/column_types/trina_column_type_date_time.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 4) demo/lib/screen/feature/cell_color_screen.dart:101 — demo/lib/screen/feature/cell_color_screen.dart:101-108 | demo/lib/screen/feature/cell_text_style_screen.dart:87-94 | demo/lib/screen/feature/date_type_column_screen.dart:66-73 | demo/lib/screen/feature/percentage_type_column_screen.dart:73-80 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.dart:101` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/cell_text_style_screen.dart:86` calls `now` and `demo/lib/screen/feature/cell_color_screen.dart:99` 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 (10 lines × 3) · ×2
  • Duplicated block (10 lines × 3) lib/src/manager/state/column_group_state.dart:48 — lib/src/manager/state/column_group_state.dart:48-57 | lib/src/manager/state/layout_state.dart:462-471 | lib/src/manager/state/layout_state.dart:473-482 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (10 lines × 3) demo/lib/screen/feature/custom_pagination_screen.dart:28 — demo/lib/screen/feature/custom_pagination_screen.dart:28-37 | demo/lib/screen/feature/pages_list_screen.dart:29-40 | demo/lib/screen/feature/row_lazy_pagination_screen.dart:33-44 — before extracting anything, compare `demo/lib/screen/feature/custom_pagination_screen.dart` and `demo/lib/screen/feature/pages_list_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 · Edited copy of a member (34 corresponding lines) · ×2
  • Edited copy of a member (34 corresponding lines) demo/lib/screen/feature/copy_and_paste_screen.dart:22 — demo/lib/screen/feature/copy_and_paste_screen.dart:22-55 | demo/lib/screen/feature/listing_mode_screen.dart:35-68 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (34 corresponding lines) demo/lib/screen/feature/column_filter_modes_screen.dart:66 — demo/lib/screen/feature/column_filter_modes_screen.dart:66-99 | demo/lib/screen/feature/custom_type_column_screen.dart:241-274 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×2
  • Edited copy of a member (10 corresponding lines) demo/lib/screen/feature/column_filtering_screen.dart:295 — demo/lib/screen/feature/column_filtering_screen.dart:295-304 | demo/lib/screen/feature/scrollbars.dart:524-536 — 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) demo/lib/widget/trina_docs_button.dart:11 — demo/lib/widget/trina_docs_button.dart:11-20 | demo/lib/widget/trina_example_button.dart:11-20 — 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 (35 lines × 2) · ×2
  • Duplicated block (35 lines × 2) demo/lib/screen/feature/dark_mode_screen.dart:31 — demo/lib/screen/feature/dark_mode_screen.dart:31-65 | demo/lib/screen/feature/theme_switching_screen.dart:31-65 — before extracting anything, compare `demo/lib/screen/feature/dark_mode_screen.dart` and `demo/lib/screen/feature/theme_switching_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 179 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 `demo/lib/screen/feature/dark_mode_screen.dart:31` 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 (35 lines × 2) demo/lib/screen/feature/row_lazy_pagination_screen.dart:138 — demo/lib/screen/feature/row_lazy_pagination_screen.dart:138-172 | demo/lib/screen/feature/row_pagination_screen.dart:45-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/row_lazy_pagination_screen.dart:138` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×2
  • Duplicated block (28 lines × 2) demo/lib/screen/feature/boolean_type_column_screen.dart:82 — demo/lib/screen/feature/boolean_type_column_screen.dart:82-109 | demo/lib/screen/feature/change_tracking_screen.dart:67-94 — before extracting anything, compare `demo/lib/screen/feature/boolean_type_column_screen.dart` and `demo/lib/screen/feature/change_tracking_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 `demo/lib/screen/feature/boolean_type_column_screen.dart:82` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/boolean_type_column_screen.dart:110` calls `TrinaCell` and `demo/lib/screen/feature/change_tracking_screen.dart:95` 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 (28 lines × 2) demo/lib/screen/feature/listing_mode_screen.dart:111 — demo/lib/screen/feature/listing_mode_screen.dart:111-138 | demo/lib/screen/feature/listing_mode_screen.dart:195-222 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/listing_mode_screen.dart:111` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×2
  • Duplicated block (25 lines × 2) demo/lib/screen/feature/cell_selection_screen.dart:35 — demo/lib/screen/feature/cell_selection_screen.dart:35-59 | demo/lib/screen/feature/excel_like_selection_screen.dart:44-68 — before extracting anything, compare `demo/lib/screen/feature/cell_selection_screen.dart` and `demo/lib/screen/feature/excel_like_selection_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 `demo/lib/screen/feature/cell_selection_screen.dart:35` 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 (25 lines × 2) demo/lib/screen/feature/column_moving_screen.dart:68 — demo/lib/screen/feature/column_moving_screen.dart:68-92 | demo/lib/screen/feature/copy_and_paste_screen.dart:57-81 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/copy_and_paste_screen.dart:54` calls `addAll`, `rowsByColumns` and `demo/lib/screen/feature/column_moving_screen.dart:65` 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 (20–22 lines × 2) · ×2
  • Duplicated block (20–22 lines × 2) demo/lib/screen/feature/cell_renderer_screen.dart:234 — demo/lib/screen/feature/cell_renderer_screen.dart:234-253 | demo/lib/screen/feature/column_renderer_screen.dart:127-148 — 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 `demo/lib/screen/feature/cell_renderer_screen.dart:234` 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 (20–22 lines × 2) demo/lib/screen/feature/scrollbars.dart:308 — demo/lib/screen/feature/scrollbars.dart:308-327 | demo/lib/screen/feature/scrollbars.dart:405-426 — 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 `demo/lib/screen/feature/scrollbars.dart:308` 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 (19 lines × 3) · ×2
  • Duplicated block (19 lines × 3) demo/lib/screen/feature/change_tracking_screen.dart:52 — demo/lib/screen/feature/change_tracking_screen.dart:52-70 | demo/lib/screen/feature/custom_loading_widget_screen.dart:123-141 | demo/lib/screen/feature/loading_options_screen.dart:123-141 — before extracting anything, compare `demo/lib/screen/feature/change_tracking_screen.dart` and `demo/lib/screen/feature/custom_loading_widget_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/change_tracking_screen.dart:52` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (19 lines × 3) demo/lib/screen/feature/custom_pagination_screen.dart:69 — demo/lib/screen/feature/custom_pagination_screen.dart:69-87 | demo/lib/screen/feature/pages_list_screen.dart:108-126 | demo/lib/screen/feature/row_lazy_pagination_screen.dart:112-130 — before extracting anything, compare `demo/lib/screen/feature/custom_pagination_screen.dart` and `demo/lib/screen/feature/pages_list_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `demo/lib/screen/feature/custom_pagination_screen.dart:69` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 × 2) · ×2
  • Duplicated block (12 lines × 2) demo/lib/screen/feature/date_time_column_screen.dart:121 — demo/lib/screen/feature/date_time_column_screen.dart:121-132 | demo/lib/screen/feature/date_time_column_screen.dart:134-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/date_time_column_screen.dart:121` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) demo/lib/screen/feature/grid_as_popup_screen.dart:122 — demo/lib/screen/feature/grid_as_popup_screen.dart:122-133 | demo/lib/screen/feature/grid_as_popup_screen.dart:137-148 — 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 `demo/lib/screen/feature/grid_as_popup_screen.dart:122` 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 lines × 3) · ×2
  • Duplicated block (11 lines × 3) demo/lib/screen/feature/cell_color_screen.dart:98 — demo/lib/screen/feature/cell_color_screen.dart:98-108 | demo/lib/screen/feature/date_type_column_screen.dart:63-73 | demo/lib/screen/feature/percentage_type_column_screen.dart:70-80 — before extracting anything, compare `demo/lib/screen/feature/date_type_column_screen.dart` and `demo/lib/screen/feature/percentage_type_column_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 `demo/lib/screen/feature/cell_color_screen.dart:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 3) demo/lib/screen/feature/column_footer_screen.dart:78 — demo/lib/screen/feature/column_footer_screen.dart:78-88 | demo/lib/screen/feature/column_footer_screen.dart:95-105 | demo/lib/screen/feature/column_footer_screen.dart:112-122 — 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 `demo/lib/screen/feature/column_footer_screen.dart:78` 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 (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) demo/lib/screen/feature/date_time_column_screen.dart:105 — demo/lib/screen/feature/date_time_column_screen.dart:105-113 | demo/lib/screen/feature/date_time_column_screen.dart:120-128 | demo/lib/screen/feature/date_time_column_screen.dart:133-141 — 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 `demo/lib/screen/feature/date_time_column_screen.dart:105` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/date_time_column_screen.dart:130` calls `TrinaCell`, `format` and `demo/lib/screen/feature/date_time_column_screen.dart:117` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 3) demo/lib/screen/feature/selection_type_column_screen.dart:151 — demo/lib/screen/feature/selection_type_column_screen.dart:151-159 | demo/lib/screen/feature/selection_type_column_screen.dart:161-169 | demo/lib/screen/feature/value_formatter_screen.dart:93-101 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/selection_type_column_screen.dart:151` 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.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×2
  • Swallowed exception (caught, then discarded) lib/src/manager/state/cell_state.dart:351 — `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) lib/src/helper/trina_date_time_helper.dart:45 — `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.
D1 · Cyclomatic Complexity · TrinaGridStyleConfig.== (cyclomatic 64) · ×1
  • TrinaGridStyleConfig.== (cyclomatic 64) lib/src/trina_grid_configuration.dart:1232 — TrinaGridStyleConfig.== has cyclomatic complexity 64 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass's cyclomatic complexity CONCENTRATES: lib/src/trina_grid_configuration.dart holds 4 of the 21 methods over the threshold — including the worst — and 108 of the 256 points over it (42%), 3.4× the next-largest file (lib/src/trina_grid.dart at 32). 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 · TrinaGridLocaleText.== (cyclomatic 59) · ×1
  • TrinaGridLocaleText.== (cyclomatic 59) lib/src/trina_grid_configuration.dart:3103 — TrinaGridLocaleText.== has cyclomatic complexity 59 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass's cyclomatic complexity CONCENTRATES: lib/src/trina_grid_configuration.dart holds 4 of the 21 methods over the threshold — including the worst — and 108 of the 256 points over it (42%), 3.4× the next-largest file (lib/src/trina_grid.dart at 32). 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 · TrinaGridLayoutDelegate.performLayout (cyclomatic 42) · ×1
  • TrinaGridLayoutDelegate.performLayout (cyclomatic 42) lib/src/trina_grid.dart:1332 — TrinaGridLayoutDelegate.performLayout has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ColumnState._applyCompoundSort (cyclomatic 29) · ×1
  • ColumnState._applyCompoundSort (cyclomatic 29) lib/src/manager/state/column_state.dart:692 — ColumnState._applyCompoundSort has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _TrinaHorizontalScrollBarState.build (cyclomatic 29) · ×1
  • _TrinaHorizontalScrollBarState.build (cyclomatic 29) lib/src/widgets/trina_horizontal_scroll_bar.dart:174 — _TrinaHorizontalScrollBarState.build has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _TrinaVerticalScrollBarState.build (cyclomatic 29) · ×1
  • _TrinaVerticalScrollBarState.build (cyclomatic 29) lib/src/widgets/trina_vertical_scroll_bar.dart:175 — _TrinaVerticalScrollBarState.build has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RowGroupState.insertRowGroup (cyclomatic 28) · ×1
  • RowGroupState.insertRowGroup (cyclomatic 28) lib/src/manager/state/row_group_state.dart:432 — RowGroupState.insertRowGroup has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SelectingState.isSelectedCell (cyclomatic 28) · ×1
  • SelectingState.isSelectedCell (cyclomatic 28) lib/src/manager/state/selecting_state.dart:626 — SelectingState.isSelectedCell 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.
D1 · Cyclomatic Complexity · TrinaDualGridLayoutDelegate.performLayout (cyclomatic 26) · ×1
  • TrinaDualGridLayoutDelegate.performLayout (cyclomatic 26) lib/src/trina_dual_grid.dart:383 — TrinaDualGridLayoutDelegate.performLayout 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.
D1 · Cyclomatic Complexity · TrinaColumnFilterState._handleOnKey (cyclomatic 26) · ×1
  • TrinaColumnFilterState._handleOnKey (cyclomatic 26) lib/src/ui/columns/trina_column_filter.dart:238 — TrinaColumnFilterState._handleOnKey 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.
D1 · Cyclomatic Complexity · TrinaGridConfiguration.== (cyclomatic 24) · ×1
  • TrinaGridConfiguration.== (cyclomatic 24) lib/src/trina_grid_configuration.dart:371 — TrinaGridConfiguration.== has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass's cyclomatic complexity CONCENTRATES: lib/src/trina_grid_configuration.dart holds 4 of the 21 methods over the threshold — including the worst — and 108 of the 256 points over it (42%), 3.4× the next-largest file (lib/src/trina_grid.dart at 32). 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 · _ScrollableSelectionContainerDelegate._jumpToEdge (cyclomatic 24) · ×1
  • _ScrollableSelectionContainerDelegate._jumpToEdge (cyclomatic 24) lib/src/ui/scrolls/trina_smooth_scrollable.dart:1571 — _ScrollableSelectionContainerDelegate._jumpToEdge has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TrinaResizePushAndPull.update (cyclomatic 22) · ×1
  • TrinaResizePushAndPull.update (cyclomatic 22) lib/src/helper/trina_size_helper.dart:472 — TrinaResizePushAndPull.update has cyclomatic complexity 22 (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 · TrinaGridScrollbarConfig.== (cyclomatic 21) · ×1
  • TrinaGridScrollbarConfig.== (cyclomatic 21) lib/src/trina_grid_configuration.dart:1527 — TrinaGridScrollbarConfig.== has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass's cyclomatic complexity CONCENTRATES: lib/src/trina_grid_configuration.dart holds 4 of the 21 methods over the threshold — including the worst — and 108 of the 256 points over it (42%), 3.4× the next-largest file (lib/src/trina_grid.dart at 32). 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 · TrinaGridState.build (cyclomatic 20) · ×1
  • TrinaGridState.build (cyclomatic 20) lib/src/trina_grid.dart:1028 — TrinaGridState.build has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TrinaDualGridProps.copyWith (cyclomatic 19) · ×1
  • TrinaDualGridProps.copyWith (cyclomatic 19) lib/src/trina_dual_grid.dart:687 — TrinaDualGridProps.copyWith 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.
D1 · Cyclomatic Complexity · _RowContainerWidgetState._getBoxDecoration (cyclomatic 17) · ×1
  • _RowContainerWidgetState._getBoxDecoration (cyclomatic 17) lib/src/ui/trina_base_row.dart:288 — _RowContainerWidgetState._getBoxDecoration 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.
D1 · Cyclomatic Complexity · TrinaRowGroupByColumnDelegate.toGroup (cyclomatic 16) · ×1
  • TrinaRowGroupByColumnDelegate.toGroup (cyclomatic 16) lib/src/helper/trina_row_group_delegate.dart:281 — TrinaRowGroupByColumnDelegate.toGroup 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 · EditingState.updateRowCells (cyclomatic 16) · ×1
  • EditingState.updateRowCells (cyclomatic 16) lib/src/manager/state/editing_state.dart:414 — EditingState.updateRowCells 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 · SelectingState.currentSelectingPositionList (cyclomatic 16) · ×1
  • SelectingState.currentSelectingPositionList (cyclomatic 16) lib/src/manager/state/selecting_state.dart:132 — SelectingState.currentSelectingPositionList has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · _CellContainerState._boxDecoration (cyclomatic 16) · ×1
  • _CellContainerState._boxDecoration (cyclomatic 16) lib/src/ui/trina_base_cell.dart:533 — _CellContainerState._boxDecoration 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.
D2 · Cognitive Complexity · ColumnState._applyCompoundSort (cognitive 65) · ×1
  • ColumnState._applyCompoundSort (cognitive 65) lib/src/manager/state/column_state.dart:692 — ColumnState._applyCompoundSort has cognitive complexity 65 (threshold 15). Drivers by points: if/else 15 (33 pts), ternaries 8 (23 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 34). 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.
D2 · Cognitive Complexity · TrinaGridLayoutDelegate.performLayout (cognitive 64) · ×1
  • TrinaGridLayoutDelegate.performLayout (cognitive 64) lib/src/trina_grid.dart:1332 — TrinaGridLayoutDelegate.performLayout has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (34 pts), ternaries 14 (28 pts), match/switch 1 (2 pts) (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.
D2 · Cognitive Complexity · TrinaGridStyleConfig.== (cognitive 63) · ×1
  • TrinaGridStyleConfig.== (cognitive 63) lib/src/trina_grid_configuration.dart:1232 — TrinaGridStyleConfig.== has cognitive complexity 63 (threshold 15). Drivers by points: boolean chains 63. 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 · TrinaGridLocaleText.== (cognitive 58) · ×1
  • TrinaGridLocaleText.== (cognitive 58) lib/src/trina_grid_configuration.dart:3103 — TrinaGridLocaleText.== has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 58. 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 · TrinaResizePushAndPull.update (cognitive 50) · ×1
  • TrinaResizePushAndPull.update (cognitive 50) lib/src/helper/trina_size_helper.dart:472 — TrinaResizePushAndPull.update has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (27 pts), ternaries 5 (14 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RowGroupState.insertRowGroup (cognitive 40) · ×1
  • RowGroupState.insertRowGroup (cognitive 40) lib/src/manager/state/row_group_state.dart:432 — RowGroupState.insertRowGroup has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (23 pts), loops 5 (8 pts), boolean chains 5, ternaries 3, match/switch 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · _TrinaVerticalScrollBarState.build (cognitive 40) · ×1
  • _TrinaVerticalScrollBarState.build (cognitive 40) lib/src/widgets/trina_vertical_scroll_bar.dart:175 — _TrinaVerticalScrollBarState.build has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 8 (16 pts), boolean chains 7 (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 · TrinaDualGridLayoutDelegate.performLayout (cognitive 39) · ×1
  • TrinaDualGridLayoutDelegate.performLayout (cognitive 39) lib/src/trina_dual_grid.dart:383 — TrinaDualGridLayoutDelegate.performLayout has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (24 pts), ternaries 9 (15 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 · _TrinaHorizontalScrollBarState.build (cognitive 39) · ×1
  • _TrinaHorizontalScrollBarState.build (cognitive 39) lib/src/widgets/trina_horizontal_scroll_bar.dart:174 — _TrinaHorizontalScrollBarState.build has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 9 (16 pts), boolean chains 6 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SelectingState.isSelectedCell (cognitive 38) · ×1
  • SelectingState.isSelectedCell (cognitive 38) lib/src/manager/state/selecting_state.dart:626 — SelectingState.isSelectedCell has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 8 (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 · TrinaRowGroupByColumnDelegate.toGroup (cognitive 35) · ×1
  • TrinaRowGroupByColumnDelegate.toGroup (cognitive 35) lib/src/helper/trina_row_group_delegate.dart:281 — TrinaRowGroupByColumnDelegate.toGroup has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _ScrollableSelectionContainerDelegate._jumpToEdge (cognitive 33) · ×1
  • _ScrollableSelectionContainerDelegate._jumpToEdge (cognitive 33) lib/src/ui/scrolls/trina_smooth_scrollable.dart:1571 — _ScrollableSelectionContainerDelegate._jumpToEdge has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 5, match/switch 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.
D2 · Cognitive Complexity · TrinaColumnFilterState._handleOnKey (cognitive 31) · ×1
  • TrinaColumnFilterState._handleOnKey (cognitive 31) lib/src/ui/columns/trina_column_filter.dart:238 — TrinaColumnFilterState._handleOnKey has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 13, ternaries 1 (3 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.
D2 · Cognitive Complexity · EditingState.updateRowCells (cognitive 30) · ×1
  • EditingState.updateRowCells (cognitive 30) lib/src/manager/state/editing_state.dart:414 — EditingState.updateRowCells has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EditingState._pasteCellValueInOrder (cognitive 29) · ×1
  • EditingState._pasteCellValueInOrder (cognitive 29) lib/src/manager/state/editing_state.dart:549 — EditingState._pasteCellValueInOrder has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · _CellContainerState._boxDecoration (cognitive 25) · ×1
  • _CellContainerState._boxDecoration (cognitive 25) lib/src/ui/trina_base_cell.dart:533 — _CellContainerState._boxDecoration has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (19 pts), boolean chains 3, if/else 3 (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 · TrinaRowGroupHelper.iterateWithFilter (cognitive 24) · ×1
  • TrinaRowGroupHelper.iterateWithFilter (cognitive 24) lib/src/helper/trina_row_group_helper.dart:6 — TrinaRowGroupHelper.iterateWithFilter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (4 pts), boolean chains 2, ternaries 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.
D2 · Cognitive Complexity · TrinaGridConfiguration.== (cognitive 23) · ×1
  • TrinaGridConfiguration.== (cognitive 23) lib/src/trina_grid_configuration.dart:371 — TrinaGridConfiguration.== has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 23. 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 · SelectingState._selectingTextFromAllSelections (cognitive 22) · ×1
  • SelectingState._selectingTextFromAllSelections (cognitive 22) lib/src/manager/state/selecting_state.dart:874 — SelectingState._selectingTextFromAllSelections has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrinaGridState.build (cognitive 22) · ×1
  • TrinaGridState.build (cognitive 22) lib/src/trina_grid.dart:1028 — TrinaGridState.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · FilterHelper.convertRowsToFilter (cognitive 21) · ×1
  • FilterHelper.convertRowsToFilter (cognitive 21) lib/src/helper/filter_helper.dart:60 — FilterHelper.convertRowsToFilter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (4 pts), loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrinaGridScrollbarConfig.== (cognitive 20) · ×1
  • TrinaGridScrollbarConfig.== (cognitive 20) lib/src/trina_grid_configuration.dart:1527 — TrinaGridScrollbarConfig.== has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 20. 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 · RowState._insertRows (cognitive 19) · ×1
  • RowState._insertRows (cognitive 19) lib/src/manager/state/row_state.dart:548 — RowState._insertRows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (7 pts), loops 1 (2 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.
D2 · Cognitive Complexity · SelectingState.currentSelectingPositionList (cognitive 19) · ×1
  • SelectingState.currentSelectingPositionList (cognitive 19) lib/src/manager/state/selecting_state.dart:132 — SelectingState.currentSelectingPositionList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrinaDualGridProps.copyWith (cognitive 18) · ×1
  • TrinaDualGridProps.copyWith (cognitive 18) lib/src/trina_dual_grid.dart:687 — TrinaDualGridProps.copyWith has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 18. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · _TrinaDefaultCellState.build (cognitive 18) · ×1
  • _TrinaDefaultCellState.build (cognitive 18) lib/src/ui/cells/trina_default_cell.dart:131 — _TrinaDefaultCellState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (6 pts), boolean chains 1, 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.
D2 · Cognitive Complexity · TrinaGridActionDefaultEnterKey.execute (cognitive 17) · ×1
  • TrinaGridActionDefaultEnterKey.execute (cognitive 17) lib/src/manager/shortcut/trina_grid_shortcut_action.dart:353 — TrinaGridActionDefaultEnterKey.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ColumnState.autoFitColumn (cognitive 17) · ×1
  • ColumnState.autoFitColumn (cognitive 17) lib/src/manager/state/column_state.dart:557 — ColumnState.autoFitColumn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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.
D2 · Cognitive Complexity · _RowContainerWidgetState._getBoxDecoration (cognitive 17) · ×1
  • _RowContainerWidgetState._getBoxDecoration (cognitive 17) lib/src/ui/trina_base_row.dart:288 — _RowContainerWidgetState._getBoxDecoration has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · FocusState.nextFocusOfColumnFilter (cognitive 16) · ×1
  • FocusState.nextFocusOfColumnFilter (cognitive 16) lib/src/manager/state/focus_state.dart:51 — FocusState.nextFocusOfColumnFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrinaRow._tristateCheckedRow (cognitive 16) · ×1
  • TrinaRow._tristateCheckedRow (cognitive 16) lib/src/model/trina_row.dart:119 — TrinaRow._tristateCheckedRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 1 (3 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TrinaDualGridState._buildGrid (cognitive 16) · ×1
  • TrinaDualGridState._buildGrid (cognitive 16) lib/src/trina_dual_grid.dart:132 — TrinaDualGridState._buildGrid has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TrinaColumnFilterState.build (cognitive 16) · ×1
  • TrinaColumnFilterState.build (cognitive 16) lib/src/ui/columns/trina_column_filter.dart:374 — TrinaColumnFilterState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MainColumnLayoutDelegate.performLayout (cognitive 16) · ×1
  • MainColumnLayoutDelegate.performLayout (cognitive 16) lib/src/ui/trina_body_columns.dart:178 — MainColumnLayoutDelegate.performLayout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D35 · Change Coupling · Change coupling · ×1
  • Change coupling: trina_horizontal_scroll_bar.dart ↔ trina_vertical_scroll_bar.dart lib/src/widgets/trina_horizontal_scroll_bar.dart:1 — `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` change together 83% of the time (10 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 between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `55cadd75` fix: reach the end of the grid when scrolling with the keyboard (#405); `791d0b2c` feat: make scrollbar track-click animation configurable (#277) (#388); `74d15eb6` fix: column header alignment (#301) and scrollbar thumb overflow (#375) — run `git show` on any of them.
D4 · Code Duplication · Near-duplicate member pair (92 shared lines) · ×1
  • Near-duplicate member pair (92 shared lines) lib/src/widgets/trina_horizontal_scroll_bar.dart:174 — lib/src/widgets/trina_horizontal_scroll_bar.dart:174-445 | lib/src/widgets/trina_vertical_scroll_bar.dart:175-433 — These two members are variants of one another: 92 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copy of a member (72 corresponding lines) · ×1
  • Edited copy of a member (72 corresponding lines) lib/src/widgets/boolean_column_filter.dart:100 — lib/src/widgets/boolean_column_filter.dart:100-171 | lib/src/widgets/multi_select_column_filter.dart:178-251 — These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (91 corresponding lines) · ×1
  • Edited copy of a member (91 corresponding lines) lib/src/manager/state/editing_state.dart:322 — lib/src/manager/state/editing_state.dart:322-412 | lib/src/manager/state/editing_state.dart:414-515 — These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 20+ corresponding lines) lib/src/helper/trina_aggregate_helper.dart:6 — lib/src/helper/trina_aggregate_helper.dart:6-29 | lib/src/helper/trina_aggregate_helper.dart:31-54 | lib/src/helper/trina_aggregate_helper.dart:56-75 | lib/src/helper/trina_aggregate_helper.dart:77-96 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×1
  • Edited copy of a member (20 corresponding lines) lib/src/manager/shortcut/trina_grid_shortcut_action.dart:182 — lib/src/manager/shortcut/trina_grid_shortcut_action.dart:182-201 | lib/src/manager/shortcut/trina_grid_shortcut_action.dart:629-651 — 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 copies of one member (3 members, 28+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 28+ corresponding lines) lib/src/ui/cells/trina_currency_cell.dart:49 — lib/src/ui/cells/trina_currency_cell.dart:49-76 | lib/src/ui/cells/trina_number_cell.dart:49-76 | lib/src/ui/cells/trina_percentage_cell.dart:51-80 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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, 20+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 20+ corresponding lines) lib/src/ui/trina_base_column_group.dart:255 — lib/src/ui/trina_base_column_group.dart:255-277 | lib/src/ui/trina_base_column_group.dart:316-335 | lib/src/ui/trina_body_columns_footer.dart:124-144 — 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 (3 members, 23+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 23+ corresponding lines) lib/src/ui/trina_body_columns.dart:47 — lib/src/ui/trina_body_columns.dart:47-69 | lib/src/ui/trina_left_frozen_columns.dart:36-58 | lib/src/ui/trina_right_frozen_columns.dart:36-58 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×1
  • Edited copy of a member (21 corresponding lines) lib/src/ui/cells/text_cell.dart:58 — lib/src/ui/cells/text_cell.dart:58-78 | lib/src/ui/trina_base_cell.dart:416-436 — 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 (15 corresponding lines) · ×1
  • Edited copy of a member (15 corresponding lines) lib/src/ui/trina_left_frozen_columns.dart:82 — lib/src/ui/trina_left_frozen_columns.dart:82-96 | lib/src/ui/trina_right_frozen_columns.dart:82-96 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×1
  • Edited copy of a member (18 corresponding lines) lib/src/widgets/trina_linked_scroll_controller.dart:261 — lib/src/widgets/trina_linked_scroll_controller.dart:261-280 | lib/src/widgets/trina_linked_scroll_controller.dart:286-303 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×1
  • Edited copy of a member (13 corresponding lines) lib/src/manager/state/filtering_row_state.dart:268 — lib/src/manager/state/filtering_row_state.dart:268-280 | lib/src/manager/state/filtering_row_state.dart:282-295 — 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 copies of one member (3 members, 13+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 13+ corresponding lines) lib/src/manager/state/column_state.dart:192 — lib/src/manager/state/column_state.dart:192-204 | lib/src/manager/state/column_state.dart:224-236 | lib/src/manager/state/column_state.dart:256-268 — 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 copy of a member (14 corresponding lines) · ×1
  • Edited copy of a member (14 corresponding lines) lib/src/plugin/trina_lazy_pagination.dart:597 — lib/src/plugin/trina_lazy_pagination.dart:597-610 | lib/src/plugin/trina_pagination.dart:233-248 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×1
  • Edited copy of a member (11 corresponding lines) lib/src/ui/miscellaneous/trina_visibility_layout.dart:326 — lib/src/ui/miscellaneous/trina_visibility_layout.dart:326-336 | lib/src/ui/miscellaneous/trina_visibility_layout.dart:338-352 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×1
  • Edited copy of a member (9 corresponding lines) lib/src/manager/state/column_sizing_state.dart:241 — lib/src/manager/state/column_sizing_state.dart:241-251 | lib/src/manager/state/column_state.dart:631-639 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) lib/src/widgets/trina_horizontal_scroll_bar.dart:161 — lib/src/widgets/trina_horizontal_scroll_bar.dart:161-172 | lib/src/widgets/trina_vertical_scroll_bar.dart:162-173 — 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 (5 corresponding lines) · ×1
  • Edited copy of a member (5 corresponding lines) lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:681 — lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:681-685 | lib/src/ui/scrolls/trina_smooth_list_view.dart:730-740 — 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 (53 lines × 2) · ×1
  • Duplicated block (53 lines × 2) lib/src/ui/trina_left_frozen_rows.dart:88 — lib/src/ui/trina_left_frozen_rows.dart:88-140 | lib/src/ui/trina_right_frozen_rows.dart:88-140 — before extracting anything, compare `lib/src/ui/trina_left_frozen_rows.dart` and `lib/src/ui/trina_right_frozen_rows.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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 (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:228 — lib/src/widgets/trina_horizontal_scroll_bar.dart:228-263 | lib/src/widgets/trina_vertical_scroll_bar.dart:233-268 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 `lib/src/widgets/trina_horizontal_scroll_bar.dart:228` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (28–30 lines × 2) · ×1
  • Duplicated block (28–30 lines × 2) lib/src/widgets/boolean_column_filter.dart:100 — lib/src/widgets/boolean_column_filter.dart:100-129 | lib/src/widgets/multi_select_column_filter.dart:178-205 — before extracting anything, compare `lib/src/widgets/boolean_column_filter.dart` and `lib/src/widgets/multi_select_column_filter.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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 `lib/src/widgets/boolean_column_filter.dart:100` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (24 lines × 2) · ×1
  • Duplicated block (24 lines × 2) lib/src/widgets/trina_horizontal_scroll_bar.dart:104 — lib/src/widgets/trina_horizontal_scroll_bar.dart:104-127 | lib/src/widgets/trina_vertical_scroll_bar.dart:105-128 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 `TrinaHorizontalScrollBar` in one and `TrinaVerticalScrollBar` 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.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) lib/src/ui/cells/trina_currency_cell.dart:55 — lib/src/ui/cells/trina_currency_cell.dart:55-76 | lib/src/ui/cells/trina_number_cell.dart:55-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `lib/src/ui/cells/trina_currency_cell.dart:55` 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 (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) lib/src/ui/trina_body_rows.dart:278 — lib/src/ui/trina_body_rows.dart:278-297 | lib/src/ui/trina_left_frozen_rows.dart:112-128 | lib/src/ui/trina_right_frozen_rows.dart:112-128 — before extracting anything, compare `lib/src/ui/trina_left_frozen_rows.dart` and `lib/src/ui/trina_right_frozen_rows.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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 `lib/src/ui/trina_body_rows.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.
D4 · Code Duplication · Duplicated block (14–16 lines × 2) · ×1
  • Duplicated block (14–16 lines × 2) lib/src/manager/shortcut/trina_grid_shortcut_action.dart:188 — lib/src/manager/shortcut/trina_grid_shortcut_action.dart:188-201 | lib/src/manager/shortcut/trina_grid_shortcut_action.dart:636-651 — 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 `lib/src/manager/shortcut/trina_grid_shortcut_action.dart:188` 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 × 4) · ×1
  • Duplicated block (13 lines × 4) lib/src/widgets/trina_horizontal_scroll_bar.dart:88 — lib/src/widgets/trina_horizontal_scroll_bar.dart:88-100 | lib/src/widgets/trina_horizontal_scroll_bar.dart:114-126 | lib/src/widgets/trina_vertical_scroll_bar.dart:89-101 | lib/src/widgets/trina_vertical_scroll_bar.dart:115-127 — before extracting anything, compare `lib/src/widgets/trina_horizontal_scroll_bar.dart` and `lib/src/widgets/trina_vertical_scroll_bar.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 181 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 `lib/src/widgets/trina_horizontal_scroll_bar.dart:88` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) lib/src/ui/miscellaneous/trina_popup_cell_state_with_menu.dart:71 — lib/src/ui/miscellaneous/trina_popup_cell_state_with_menu.dart:71-82 | lib/src/widgets/boolean_column_filter.dart:115-125 | lib/src/widgets/multi_select_column_filter.dart:193-203 — before extracting anything, compare `lib/src/widgets/boolean_column_filter.dart` and `lib/src/widgets/multi_select_column_filter.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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 `lib/src/ui/miscellaneous/trina_popup_cell_state_with_menu.dart:71` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×1
  • Duplicated block (11–12 lines × 2) lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:274 — lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:274-285 | lib/src/ui/scrolls/trina_smooth_list_view.dart:588-598 — 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 `lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:274` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8–10 lines × 3) · ×1
  • Duplicated block (8–10 lines × 3) lib/src/helper/trina_size_helper.dart:489 — lib/src/helper/trina_size_helper.dart:489-496 | lib/src/helper/trina_size_helper.dart:503-510 | lib/src/helper/trina_size_helper.dart:546-555 — 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 `lib/src/helper/trina_size_helper.dart:489` 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 (10–11 lines × 2) · ×1
  • Duplicated block (10–11 lines × 2) lib/src/manager/state/column_state.dart:714 — lib/src/manager/state/column_state.dart:714-723 | lib/src/manager/state/column_state.dart:725-735 — 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 `lib/src/manager/state/column_state.dart:725` 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 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–8 lines × 2) · ×1
  • Duplicated block (6–8 lines × 2) lib/src/helper/trina_size_helper.dart:157 — lib/src/helper/trina_size_helper.dart:157-164 | lib/src/helper/trina_size_helper.dart:201-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 `lib/src/helper/trina_size_helper.dart:157` 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 (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) lib/src/trina_grid_date_picker.dart:445 — lib/src/trina_grid_date_picker.dart:445-452 | lib/src/ui/trina_body_columns.dart:31-38 | lib/src/ui/trina_body_columns_footer.dart:28-35 — before extracting anything, compare `lib/src/ui/trina_body_columns.dart` and `lib/src/ui/trina_body_columns_footer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 · Near-duplicate member family (4 members, 26 shared lines) · ×1
  • Near-duplicate member family (4 members, 26 shared lines) demo/lib/screen/feature/cell_color_screen.dart:54 — demo/lib/screen/feature/cell_color_screen.dart:54-153 | demo/lib/screen/feature/cell_text_style_screen.dart:39-149 | demo/lib/screen/feature/date_type_column_screen.dart:21-101 | demo/lib/screen/feature/percentage_type_column_screen.dart:23-111 — These 4 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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 · Near-duplicate member family (3 members, 41 shared lines) · ×1
  • Near-duplicate member family (3 members, 41 shared lines) demo/lib/screen/feature/column_hiding_screen.dart:23 — demo/lib/screen/feature/column_hiding_screen.dart:23-68 | demo/lib/screen/feature/column_moving_screen.dart:21-66 | demo/lib/screen/feature/column_sorting_screen.dart:21-66 — These 3 members are variants of one another: a block of 41 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times.
D4 · Code Duplication · Near-duplicate member pair (72 shared lines) · ×1
  • Near-duplicate member pair (72 shared lines) demo/lib/screen/feature/custom_loading_widget_screen.dart:173 — demo/lib/screen/feature/custom_loading_widget_screen.dart:173-256 | demo/lib/screen/feature/loading_options_screen.dart:191-292 — These two members are variants of one another: 72 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) demo/lib/screen/feature/cell_selection_screen.dart:35 — demo/lib/screen/feature/cell_selection_screen.dart:35-76 | demo/lib/screen/feature/excel_like_selection_screen.dart:44-95 | demo/lib/screen/feature/listing_mode_screen.dart:77-153 | demo/lib/screen/feature/listing_mode_screen.dart:155-229 | demo/lib/screen/feature/row_selection_screen.dart:39-75 — 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 (100 corresponding lines) · ×1
  • Edited copy of a member (100 corresponding lines) demo/lib/screen/feature/dark_mode_screen.dart:21 — demo/lib/screen/feature/dark_mode_screen.dart:21-142 | demo/lib/screen/feature/theme_switching_screen.dart:21-120 — These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (67 corresponding lines) · ×1
  • Edited copy of a member (67 corresponding lines) demo/lib/screen/feature/change_tracking_screen.dart:37 — demo/lib/screen/feature/change_tracking_screen.dart:37-103 | demo/lib/screen/feature/column_filter_methods_screen.dart:22-102 — These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (62 corresponding lines) · ×1
  • Edited copy of a member (62 corresponding lines) demo/lib/dummy_data/quick_start.dart:7 — demo/lib/dummy_data/quick_start.dart:7-74 | demo/lib/screen/feature/number_type_column_screen.dart:21-82 — These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (65 corresponding lines) · ×1
  • Edited copy of a member (65 corresponding lines) demo/lib/screen/feature/row_lazy_pagination_screen.dart:132 — demo/lib/screen/feature/row_lazy_pagination_screen.dart:132-216 | demo/lib/screen/feature/row_pagination_screen.dart:36-100 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (47 corresponding lines) · ×1
  • Edited copy of a member (47 corresponding lines) demo/lib/screen/feature/custom_footer_screen.dart:22 — demo/lib/screen/feature/custom_footer_screen.dart:22-77 | demo/lib/screen/feature/filter_icon_customization_screen.dart:22-68 — These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 45+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 45+ corresponding lines) demo/lib/screen/feature/cell_selection_screen.dart:78 — demo/lib/screen/feature/cell_selection_screen.dart:78-126 | demo/lib/screen/feature/editing_state_screen.dart:44-88 | demo/lib/screen/feature/row_selection_screen.dart:104-160 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 45 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 (35 corresponding lines) · ×1
  • Edited copy of a member (35 corresponding lines) demo/lib/screen/feature/row_moving_screen.dart:24 — demo/lib/screen/feature/row_moving_screen.dart:24-58 | demo/lib/screen/feature/row_with_checkbox_screen.dart:24-59 — 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 (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) demo/lib/screen/feature/dynamic_row_height_demo.dart:130 — demo/lib/screen/feature/dynamic_row_height_demo.dart:130-154 | demo/lib/screen/feature/dynamic_row_height_demo.dart:157-183 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) demo/lib/screen/feature/column_freezing_screen.dart:33 — demo/lib/screen/feature/column_freezing_screen.dart:33-63 | demo/lib/screen/feature/row_with_checkbox_screen.dart:72-104 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) demo/lib/screen/empty_screen.dart:22 — demo/lib/screen/empty_screen.dart:22-45 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:27-55 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 27+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 27+ corresponding lines) demo/lib/screen/feature/add_rows_asynchronously.dart:97 — demo/lib/screen/feature/add_rows_asynchronously.dart:97-135 | demo/lib/screen/feature/column_footer_screen.dart:139-172 | demo/lib/screen/feature/column_group_screen.dart:134-165 | demo/lib/screen/feature/column_title_renderer_screen.dart:198-227 | demo/lib/screen/feature/currency_type_column_screen.dart:98-124 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:164-212 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 23+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 23+ corresponding lines) demo/lib/screen/feature/column_sorting_screen.dart:68 — demo/lib/screen/feature/column_sorting_screen.dart:68-90 | demo/lib/screen/feature/date_type_column_screen.dart:103-127 | demo/lib/screen/feature/time_type_column_screen.dart:97-120 | demo/lib/screen/feature/value_formatter_screen.dart:110-138 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (67–68 lines × 2) · ×1
  • Duplicated block (67–68 lines × 2) REDACTED:264 — REDACTED:264-330 | REDACTED:348-415 — 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 `REDACTED:264` 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 (39 lines × 2) · ×1
  • Duplicated block (39 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:116 — demo/lib/screen/feature/custom_loading_widget_screen.dart:116-154 | demo/lib/screen/feature/loading_options_screen.dart:116-154 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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 (37 lines × 2) · ×1
  • Duplicated block (37 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:297 — demo/lib/screen/feature/custom_loading_widget_screen.dart:297-333 | demo/lib/screen/feature/loading_options_screen.dart:333-369 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:224 — demo/lib/screen/feature/custom_loading_widget_screen.dart:224-256 | demo/lib/screen/feature/loading_options_screen.dart:260-292 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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 `demo/lib/screen/feature/custom_loading_widget_screen.dart:224` 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 (49–63 lines × 2) · ×1
  • Duplicated block (49–63 lines × 2) demo/lib/screen/feature/dark_mode_screen.dart:72 — demo/lib/screen/feature/dark_mode_screen.dart:72-134 | demo/lib/screen/feature/theme_switching_screen.dart:66-114 — before extracting anything, compare `demo/lib/screen/feature/dark_mode_screen.dart` and `demo/lib/screen/feature/theme_switching_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 179 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 `demo/lib/screen/feature/dark_mode_screen.dart:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/dark_mode_screen.dart:135` calls `toString`, `padLeft` and `demo/lib/screen/feature/theme_switching_screen.dart:114` 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 (25–29 lines × 4) · ×1
  • Duplicated block (25–29 lines × 4) demo/lib/screen/feature/custom_pagination_screen.dart:41 — demo/lib/screen/feature/custom_pagination_screen.dart:41-65 | demo/lib/screen/feature/pages_list_screen.dart:76-104 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:91-119 | demo/lib/screen/feature/row_lazy_pagination_screen.dart:80-108 — before extracting anything, compare `demo/lib/screen/feature/custom_pagination_screen.dart` and `demo/lib/screen/feature/pages_list_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `demo/lib/screen/feature/custom_pagination_screen.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.
D4 · Code Duplication · Duplicated block (24–28 lines × 4) · ×1
  • Duplicated block (24–28 lines × 4) demo/lib/screen/feature/copy_and_paste_screen.dart:28 — demo/lib/screen/feature/copy_and_paste_screen.dart:28-55 | demo/lib/screen/feature/listing_mode_screen.dart:41-68 | demo/lib/screen/feature/row_moving_screen.dart:35-58 | demo/lib/screen/feature/row_with_checkbox_screen.dart:36-59 — before extracting anything, compare `demo/lib/screen/feature/copy_and_paste_screen.dart` and `demo/lib/screen/feature/listing_mode_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 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 `demo/lib/screen/feature/copy_and_paste_screen.dart:28` 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 (27 lines × 4) · ×1
  • Duplicated block (27 lines × 4) demo/lib/screen/feature/add_and_remove_column_row_screen.dart:90 — demo/lib/screen/feature/add_and_remove_column_row_screen.dart:90-116 | demo/lib/screen/feature/column_hiding_screen.dart:42-68 | demo/lib/screen/feature/column_moving_screen.dart:40-66 | demo/lib/screen/feature/column_sorting_screen.dart:40-66 — before extracting anything, compare `demo/lib/screen/feature/column_hiding_screen.dart` and `demo/lib/screen/feature/column_moving_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 `demo/lib/screen/feature/add_and_remove_column_row_screen.dart:90` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (27 lines × 3) · ×1
  • Duplicated block (27 lines × 3) demo/lib/screen/feature/boolean_type_column_screen.dart:22 — demo/lib/screen/feature/boolean_type_column_screen.dart:22-48 | demo/lib/screen/feature/change_tracking_screen.dart:37-63 | demo/lib/screen/feature/column_filter_methods_screen.dart:22-48 — before extracting anything, compare `demo/lib/screen/feature/boolean_type_column_screen.dart` and `demo/lib/screen/feature/change_tracking_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 `demo/lib/screen/feature/boolean_type_column_screen.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. 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 (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) demo/lib/screen/feature/cell_color_screen.dart:63 — demo/lib/screen/feature/cell_color_screen.dart:63-89 | demo/lib/screen/feature/cell_text_style_screen.dart:48-74 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.dart:63` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (15–25 lines × 8) · ×1
  • Duplicated block (15–25 lines × 8) demo/lib/screen/empty_screen.dart:27 — demo/lib/screen/empty_screen.dart:27-41 | demo/lib/screen/feature/column_hiding_screen.dart:28-42 | demo/lib/screen/feature/column_moving_screen.dart:26-40 | demo/lib/screen/feature/column_sorting_screen.dart:26-40 | demo/lib/screen/feature/copy_and_paste_screen.dart:27-51 | demo/lib/screen/feature/listing_mode_screen.dart:40-64 | demo/lib/screen/feature/row_moving_screen.dart:35-54 | demo/lib/screen/feature/row_with_checkbox_screen.dart:36-55 — before extracting anything, compare `demo/lib/screen/feature/column_hiding_screen.dart` and `demo/lib/screen/feature/column_moving_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 (20–24 lines × 4) · ×1
  • Duplicated block (20–24 lines × 4) demo/lib/screen/feature/cell_color_screen.dart:54 — demo/lib/screen/feature/cell_color_screen.dart:54-73 | demo/lib/screen/feature/cell_text_style_screen.dart:39-58 | demo/lib/screen/feature/dark_mode_screen.dart:21-44 | demo/lib/screen/feature/theme_switching_screen.dart:21-44 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.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. 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 (23 lines × 4) · ×1
  • Duplicated block (23 lines × 4) demo/lib/screen/feature/column_footer_screen.dart:141 — demo/lib/screen/feature/column_footer_screen.dart:141-163 | demo/lib/screen/feature/column_freezing_screen.dart:35-57 | demo/lib/screen/feature/moving_screen.dart:35-57 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:166-188 — before extracting anything, compare `demo/lib/screen/feature/column_footer_screen.dart` and `demo/lib/screen/feature/row_infinity_scroll_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 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 `demo/lib/screen/feature/column_footer_screen.dart:141` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/screen/feature/column_footer_screen.dart:166` calls `setSelectingMode` and `demo/lib/screen/feature/row_infinity_scroll_screen.dart:191` 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 (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) demo/lib/screen/feature/add_and_remove_column_row_screen.dart:118 — demo/lib/screen/feature/add_and_remove_column_row_screen.dart:118-140 | demo/lib/screen/feature/row_wrapper_frozen_screen.dart:42-64 | demo/lib/screen/feature/value_formatter_screen.dart:110-132 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/add_and_remove_column_row_screen.dart:118` 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.
D4 · Code Duplication · Duplicated block (19–23 lines × 2) · ×1
  • Duplicated block (19–23 lines × 2) demo/lib/screen/feature/column_filtering_screen.dart:101 — demo/lib/screen/feature/column_filtering_screen.dart:101-123 | demo/lib/screen/feature/dynamic_row_height_demo.dart:42-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 `demo/lib/screen/feature/column_filtering_screen.dart:101` 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 (22 lines × 6) · ×1
  • Duplicated block (22 lines × 6) demo/lib/screen/feature/column_footer_screen.dart:139 — demo/lib/screen/feature/column_footer_screen.dart:139-160 | demo/lib/screen/feature/column_freezing_screen.dart:33-54 | demo/lib/screen/feature/column_resizing_screen.dart:39-60 | demo/lib/screen/feature/moving_screen.dart:33-54 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:164-185 | demo/lib/screen/feature/row_wrapper_screen.dart:29-50 — before extracting anything, compare `demo/lib/screen/feature/column_footer_screen.dart` and `demo/lib/screen/feature/row_infinity_scroll_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 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 `demo/lib/screen/feature/column_footer_screen.dart:139` 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.
D4 · Code Duplication · Duplicated block (20 lines × 5) · ×1
  • Duplicated block (20 lines × 5) demo/lib/screen/feature/cell_renderer_screen.dart:224 — demo/lib/screen/feature/cell_renderer_screen.dart:224-243 | demo/lib/screen/feature/column_group_screen.dart:134-153 | demo/lib/screen/feature/custom_pagination_screen.dart:89-108 | demo/lib/screen/feature/row_with_checkbox_screen.dart:72-91 | demo/lib/screen/feature/selection_type_column_screen.dart:180-199 — before extracting anything, compare `demo/lib/screen/feature/cell_renderer_screen.dart` and `demo/lib/screen/feature/row_with_checkbox_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 `demo/lib/screen/feature/cell_renderer_screen.dart:224` 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.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) demo/lib/screen/feature/column_renderer_screen.dart:120 — demo/lib/screen/feature/column_renderer_screen.dart:120-139 | demo/lib/screen/feature/column_sorting_screen.dart:68-87 | demo/lib/screen/feature/currency_type_column_screen.dart:98-117 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/column_renderer_screen.dart:120` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/column_renderer_screen.dart:117` calls `addAll`, `rowsByColumns` and `demo/lib/screen/feature/column_sorting_screen.dart:65` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×1
  • Duplicated block (18 lines × 3) demo/lib/screen/feature/cell_renderer_screen.dart:230 — demo/lib/screen/feature/cell_renderer_screen.dart:230-247 | demo/lib/screen/feature/row_moving_screen.dart:71-88 | demo/lib/screen/feature/row_with_checkbox_screen.dart:78-95 — before extracting anything, compare `demo/lib/screen/feature/cell_renderer_screen.dart` and `demo/lib/screen/feature/row_with_checkbox_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 `demo/lib/screen/feature/cell_renderer_screen.dart:230` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×1
  • Duplicated block (17–18 lines × 2) demo/lib/screen/feature/currency_type_column_screen.dart:105 — demo/lib/screen/feature/currency_type_column_screen.dart:105-121 | demo/lib/screen/feature/row_infinity_scroll_screen.dart:175-192 — 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 `demo/lib/screen/feature/currency_type_column_screen.dart:105` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17 lines × 4) · ×1
  • Duplicated block (17 lines × 4) demo/lib/screen/feature/cell_renderer_screen.dart:231 — demo/lib/screen/feature/cell_renderer_screen.dart:231-247 | demo/lib/screen/feature/column_freezing_screen.dart:41-58 | demo/lib/screen/feature/row_moving_screen.dart:72-88 | demo/lib/screen/feature/row_with_checkbox_screen.dart:79-95 — before extracting anything, compare `demo/lib/screen/feature/cell_renderer_screen.dart` and `demo/lib/screen/feature/row_with_checkbox_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 `demo/lib/screen/feature/cell_renderer_screen.dart:231` 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 (16 lines × 4) · ×1
  • Duplicated block (16 lines × 4) demo/lib/screen/feature/boolean_type_column_screen.dart:34 — demo/lib/screen/feature/boolean_type_column_screen.dart:34-49 | demo/lib/screen/feature/change_tracking_screen.dart:49-64 | demo/lib/screen/feature/column_filter_methods_screen.dart:34-49 | demo/lib/screen/feature/custom_footer_screen.dart:32-47 — before extracting anything, compare `demo/lib/screen/feature/boolean_type_column_screen.dart` and `demo/lib/screen/feature/change_tracking_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 `demo/lib/screen/feature/boolean_type_column_screen.dart:34` 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 (15–16 lines × 3) · ×1
  • Duplicated block (15–16 lines × 3) demo/lib/screen/feature/cell_renderer_screen.dart:233 — demo/lib/screen/feature/cell_renderer_screen.dart:233-248 | demo/lib/screen/feature/column_freezing_screen.dart:44-59 | demo/lib/screen/feature/column_renderer_screen.dart:127-141 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/cell_renderer_screen.dart:233` 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 (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:208 — demo/lib/screen/feature/custom_loading_widget_screen.dart:208-222 | demo/lib/screen/feature/loading_options_screen.dart:231-246 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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 `demo/lib/screen/feature/custom_loading_widget_screen.dart:208` 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 (15 lines × 7) · ×1
  • Duplicated block (15 lines × 7) demo/lib/screen/feature/cell_color_screen.dart:59 — demo/lib/screen/feature/cell_color_screen.dart:59-73 | demo/lib/screen/feature/cell_text_style_screen.dart:44-58 | demo/lib/screen/feature/change_tracking_screen.dart:56-70 | demo/lib/screen/feature/custom_loading_widget_screen.dart:127-141 | demo/lib/screen/feature/dark_mode_screen.dart:27-41 | demo/lib/screen/feature/loading_options_screen.dart:127-141 | demo/lib/screen/feature/theme_switching_screen.dart:27-41 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.dart:59` 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 (15 lines × 6) · ×1
  • Duplicated block (15 lines × 6) demo/lib/screen/feature/boolean_type_column_screen.dart:35 — demo/lib/screen/feature/boolean_type_column_screen.dart:35-49 | demo/lib/screen/feature/change_tracking_screen.dart:50-64 | demo/lib/screen/feature/column_filter_methods_screen.dart:35-49 | demo/lib/screen/feature/custom_footer_screen.dart:33-47 | demo/lib/screen/feature/custom_loading_widget_screen.dart:121-135 | demo/lib/screen/feature/loading_options_screen.dart:121-135 — before extracting anything, compare `demo/lib/screen/feature/boolean_type_column_screen.dart` and `demo/lib/screen/feature/change_tracking_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 `demo/lib/screen/feature/boolean_type_column_screen.dart:35` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15 lines × 5) · ×1
  • Duplicated block (15 lines × 5) demo/lib/screen/feature/column_renderer_screen.dart:95 — demo/lib/screen/feature/column_renderer_screen.dart:95-109 | demo/lib/screen/feature/copy_and_paste_screen.dart:31-45 | demo/lib/screen/feature/listing_mode_screen.dart:44-58 | demo/lib/screen/feature/row_moving_screen.dart:34-48 | demo/lib/screen/feature/row_with_checkbox_screen.dart:35-49 — before extracting anything, compare `demo/lib/screen/feature/copy_and_paste_screen.dart` and `demo/lib/screen/feature/listing_mode_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 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 `demo/lib/screen/feature/column_renderer_screen.dart:95` 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 (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) demo/lib/screen/feature/column_filtering_screen.dart:103 — demo/lib/screen/feature/column_filtering_screen.dart:103-119 | demo/lib/screen/feature/custom_footer_screen.dart:27-41 | demo/lib/screen/feature/dynamic_row_height_demo.dart:40-54 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/column_filtering_screen.dart:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–13 lines × 3) · ×1
  • Duplicated block (12–13 lines × 3) demo/lib/screen/feature/excel_like_selection_screen.dart:65 — demo/lib/screen/feature/excel_like_selection_screen.dart:65-77 | demo/lib/screen/feature/listing_mode_screen.dart:82-93 | demo/lib/screen/feature/listing_mode_screen.dart:160-171 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/excel_like_selection_screen.dart:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/listing_mode_screen.dart:81` calls `TextEditingController` and `demo/lib/screen/feature/excel_like_selection_screen.dart:64` 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 (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) demo/lib/screen/feature/custom_pagination_screen.dart:107 — demo/lib/screen/feature/custom_pagination_screen.dart:107-118 | demo/lib/screen/feature/pages_list_screen.dart:145-156 | demo/lib/screen/feature/row_lazy_pagination_screen.dart:174-185 — before extracting anything, compare `demo/lib/screen/feature/custom_pagination_screen.dart` and `demo/lib/screen/feature/pages_list_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `demo/lib/screen/feature/custom_pagination_screen.dart:107` 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.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) demo/lib/dummy_data/quick_start.dart:49 — demo/lib/dummy_data/quick_start.dart:49-59 | demo/lib/screen/feature/date_type_column_screen.dart:72-82 | demo/lib/screen/feature/date_type_column_screen.dart:83-93 | demo/lib/screen/feature/time_type_column_screen.dart:56-66 — before extracting anything, compare `demo/lib/dummy_data/quick_start.dart` and `demo/lib/screen/feature/date_type_column_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `demo/lib/dummy_data/quick_start.dart:49` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (10 lines × 8) · ×1
  • Duplicated block (10 lines × 8) demo/lib/dummy_data/quick_start.dart:50 — demo/lib/dummy_data/quick_start.dart:50-59 | demo/lib/screen/feature/add_and_remove_column_row_screen.dart:96-105 | demo/lib/screen/feature/column_hiding_screen.dart:48-57 | demo/lib/screen/feature/column_moving_screen.dart:46-55 | demo/lib/screen/feature/column_sorting_screen.dart:46-55 | demo/lib/screen/feature/date_type_column_screen.dart:73-82 | demo/lib/screen/feature/date_type_column_screen.dart:84-93 | demo/lib/screen/feature/time_type_column_screen.dart:57-66 — before extracting anything, compare `demo/lib/dummy_data/quick_start.dart` and `demo/lib/screen/feature/date_type_column_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `demo/lib/dummy_data/quick_start.dart:50` 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 after the matched lines, `demo/lib/dummy_data/quick_start.dart:60` calls `TrinaCell` and `demo/lib/screen/feature/add_and_remove_column_row_screen.dart:106` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) demo/lib/dummy_data/quick_start.dart:51 — demo/lib/dummy_data/quick_start.dart:51-60 | demo/lib/screen/feature/date_type_column_screen.dart:74-83 | demo/lib/screen/feature/date_type_column_screen.dart:85-94 | demo/lib/screen/feature/percentage_type_column_screen.dart:82-91 | demo/lib/screen/feature/percentage_type_column_screen.dart:94-103 | demo/lib/screen/feature/time_type_column_screen.dart:58-67 — before extracting anything, compare `demo/lib/dummy_data/quick_start.dart` and `demo/lib/screen/feature/date_type_column_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `demo/lib/dummy_data/quick_start.dart:51` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `demo/lib/dummy_data/quick_start.dart:60` calls `TrinaCell` and `demo/lib/screen/feature/time_type_column_screen.dart:67` does not — after which the two agree again for 5 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 (9 lines × 12) · ×1
  • Duplicated block (9 lines × 12) demo/lib/screen/feature/cell_color_screen.dart:110 — demo/lib/screen/feature/cell_color_screen.dart:110-118 | demo/lib/screen/feature/cell_color_screen.dart:120-128 | demo/lib/screen/feature/cell_color_screen.dart:130-138 | demo/lib/screen/feature/cell_color_screen.dart:140-148 | demo/lib/screen/feature/cell_text_style_screen.dart:96-104 | demo/lib/screen/feature/cell_text_style_screen.dart:106-114 | demo/lib/screen/feature/cell_text_style_screen.dart:126-134 | demo/lib/screen/feature/cell_text_style_screen.dart:136-144 | demo/lib/screen/feature/date_type_column_screen.dart:76-84 | demo/lib/screen/feature/date_type_column_screen.dart:87-95 | demo/lib/screen/feature/percentage_type_column_screen.dart:84-92 | demo/lib/screen/feature/percentage_type_column_screen.dart:96-104 — before extracting anything, compare `demo/lib/screen/feature/cell_color_screen.dart` and `demo/lib/screen/feature/cell_text_style_screen.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 `demo/lib/screen/feature/cell_color_screen.dart:110` 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 (9 lines × 2) · ×1
  • Duplicated block (9 lines × 2) demo/lib/screen/feature/custom_loading_widget_screen.dart:281 — demo/lib/screen/feature/custom_loading_widget_screen.dart:281-289 | demo/lib/screen/feature/loading_options_screen.dart:317-325 — before extracting anything, compare `demo/lib/screen/feature/custom_loading_widget_screen.dart` and `demo/lib/screen/feature/loading_options_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 208 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 (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) demo/lib/screen/feature/cell_text_style_screen.dart:96 — demo/lib/screen/feature/cell_text_style_screen.dart:96-103 | demo/lib/screen/feature/cell_text_style_screen.dart:106-113 | demo/lib/screen/feature/cell_text_style_screen.dart:116-123 | demo/lib/screen/feature/cell_text_style_screen.dart:126-133 | demo/lib/screen/feature/cell_text_style_screen.dart:136-143 — 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 `demo/lib/screen/feature/cell_text_style_screen.dart:96` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–7 lines × 4) · ×1
  • Duplicated block (6–7 lines × 4) demo/lib/screen/feature/date_time_column_screen.dart:103 — demo/lib/screen/feature/date_time_column_screen.dart:103-108 | demo/lib/screen/feature/date_time_column_screen.dart:117-123 | demo/lib/screen/feature/date_time_column_screen.dart:131-136 | demo/lib/screen/feature/date_time_column_screen.dart:144-149 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `demo/lib/screen/feature/date_time_column_screen.dart:103` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `demo/lib/screen/feature/date_time_column_screen.dart:130` calls `TrinaCell`, `format` and `demo/lib/screen/feature/date_time_column_screen.dart:117` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7 lines × 16) · ×1
  • Duplicated block (7 lines × 16) demo/lib/screen/feature/cell_selection_screen.dart:24 — demo/lib/screen/feature/cell_selection_screen.dart:24-33 | demo/lib/screen/feature/column_freezing_screen.dart:22-31 | demo/lib/screen/feature/column_menu_screen.dart:22-31 | demo/lib/screen/feature/column_resizing_screen.dart:28-37 | demo/lib/screen/feature/editing_state_screen.dart:26-35 | demo/lib/screen/feature/excel_like_selection_screen.dart:33-42 | demo/lib/screen/feature/moving_screen.dart:22-31 | demo/lib/screen/feature/record_sidebar_screen.dart:24-31 | demo/lib/screen/feature/row_color_screen.dart:68-75 | demo/lib/screen/feature/row_pagination_screen.dart:25-34 | demo/lib/screen/feature/row_selection_screen.dart:28-37 | demo/lib/screen/feature/row_wrapper_screen.dart:21-27 | demo/lib/screen/feature/rtl_screen.dart:22-31 | demo/lib/screen/feature/rtl_scrollbar_screen.dart:21-29 | demo/lib/screen/feature/scroll_physics_screen.dart:43-52 | demo/lib/screen/feature/scrollbars.dart:38-45 — before extracting anything, compare `demo/lib/screen/feature/cell_selection_screen.dart` and `demo/lib/screen/feature/excel_like_selection_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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.
P12 · CI test-gate honesty · Coverage reaches no merge · ×1
  • Coverage reaches no merge REDACTED:27 — `codecov/codecov-action` uploads coverage, but the workflow runs only on pushes to named branches or tags — after the merge: no pull request ever reports coverage for `.`, and nothing that runs on one enforces a floor — the number can fall and every change still merges. Upload (or enforce the floor) on pull requests too.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×1
  • Recursive walk over a caller-supplied document has no depth cap lib/src/model/trina_row.dart:251 — `TrinaRow.fromJson` is public and takes `Map<String, dynamic> json` from its caller, and it calls itself at line 251 (`TrinaRow.fromJson`) with a piece of `json` — and nowhere in `TrinaRow.fromJson` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `TrinaRow.fromJson` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Minor — 36 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×20
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:251 — `!scrollConfig.isAlwaysShown && !_hovering` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:191 — `!scrollConfig.isAlwaysShown && !_isDragging` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:134 — `!scrollConfig.isAlwaysShown && currentOffset != _lastScrollOffset` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:147 — `!widget.stateManager.configuration.scrollbar.isAlwaysShown && !_hovering && !_isDragging` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/ui/cells/text_cell.dart:65 — `_cachedCellValueForReadOnly != widget.cell.value || _cachedRowVersionForReadOnly != widget.row.version || _cachedReadOnlyGeneration != gener…` appears character-identically in 2 files — lib/src/ui/cells/text_cell.dart, lib/src/ui/trina_base_cell.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/export/trina_grid_export_json.dart:63 — `columnNames == null || columnNames.isEmpty` appears character-identically in 2 files — lib/src/export/trina_grid_export_json.dart, lib/src/export/trina_grid_export_pdf.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/manager/state/cell_state.dart:237 — `configuration.enableCtrlClickMultiSelect && selectingMode == TrinaGridSelectingMode.cell` appears character-identically in 3 files — lib/src/manager/state/cell_state.dart, lib/src/manager/state/editing_state.dart, lib/src/manager/state/selecting_state.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:247 — `controller == null && PrimaryScrollController.shouldInherit(context, scrollDirection)` appears character-identically in 2 files — lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart, lib/src/ui/scrolls/trina_smooth_list_view.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:287 — `effectivePrimary && scrollController != null` appears character-identically in 2 files — lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart, lib/src/ui/scrolls/trina_smooth_list_view.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/export/trina_grid_export_csv.dart:43 — `ignoreFixedRows && row.frozen != TrinaRowFrozen.none` appears character-identically in 2 files — lib/src/export/trina_grid_export_csv.dart, lib/src/export/trina_grid_export_json.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:114 — `newConfig.isAlwaysShown && newConfig.thumbVisible` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart:277 — `notification.dragDetails != null && !currentScope.hasPrimaryFocus && currentScope.hasFocus` appears character-identically in 2 files — lib/src/ui/scrolls/trina_single_child_smooth_scroll_view.dart, lib/src/ui/scrolls/trina_smooth_list_view.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:111 — `oldConfig.isAlwaysShown != newConfig.isAlwaysShown || oldConfig.thumbVisible != newConfig.thumbVisible` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:88 — `scrollConfig.isAlwaysShown && scrollConfig.thumbVisible` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/widgets/trina_horizontal_scroll_bar.dart:386 — `scrollController != null && scrollController.hasClients` appears character-identically in 2 files — lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/manager/state/editing_state.dart:226 — `selectingMode.isRow && currentSelectingRows.isNotEmpty` appears character-identically in 2 files — lib/src/manager/state/editing_state.dart, lib/src/manager/state/selecting_state.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/ui/scrolls/trina_smooth_list_view.dart:196 — `semanticChildCount == null || semanticChildCount >= 0` appears character-identically in 2 files — lib/src/ui/scrolls/trina_smooth_list_view.dart, lib/src/ui/scrolls/trina_smooth_scrollable.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/manager/event/trina_grid_cell_gesture_event.dart:89 — `stateManager.configuration.enableDragSelection && stateManager.selectingMode == TrinaGridSelectingMode.cell` appears character-identically in 2 files — lib/src/manager/event/trina_grid_cell_gesture_event.dart, lib/src/ui/trina_base_cell.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/manager/event/trina_grid_cell_gesture_event.dart:249 — `stateManager.mode.isMultiSelectMode || (stateManager.mode.isNormal && stateManager.selectingMode.isRow)` appears character-identically in 2 files — lib/src/manager/event/trina_grid_cell_gesture_event.dart, lib/src/manager/shortcut/trina_grid_shortcut_action.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate lib/src/plugin/trina_infinity_scroll_rows.dart:203 — `thisVersion != _fetchVersion || !mounted` appears character-identically in 2 files — lib/src/plugin/trina_infinity_scroll_rows.dart, lib/src/plugin/trina_lazy_pagination.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.
AX6 · Interface segregation · Fat interface · ×8
  • Fat interface: ICellState (16 abstract methods) lib/src/manager/state/cell_state.dart:4 — `ICellState` declares 16 abstract methods: `currentCell`, `currentCellPosition`, `firstCell`, `setCurrentCellPosition`, `updateCurrentCellPosition`, `cellPositionByCellKey`, `columnIdxByCellKeyAndRowIdx`, `clearCurrentCell`, `setCurrentCell`, `canMoveCell`, `canNotMoveCell`, `canChangeCellValue`, `canNotChangeCellValue`, `filteredCellValue`, `isCurrentCell`, `isInvalidCellPosition`. 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: IColumnState (38 abstract methods) lib/src/manager/state/column_state.dart:9 — `IColumnState` declares 38 abstract methods: `columns`, `refColumns`, `columnIndexes`, `columnIndexesForShowFrozen`, `columnsWidth`, `leftFrozenColumns`, `leftFrozenColumnIndexes`, `leftFrozenColumnsWidth`, `rightFrozenColumns`, `rightFrozenColumnIndexes`, `rightFrozenColumnsWidth`, `bodyColumns`, `bodyColumnIndexes`, `bodyColumnsWidth`, `currentColumn`, `currentColumnField`, `hasSortedColumn`, `getSortedColumn`, `columnIndexesByShowFrozen`, `toggleFrozenColumn`, `toggleSortColumn`, `columnIndex`, `insertColumns`, `removeColumns`, `moveColumn`, `resizeColumn`, `autoFitColumn`, `hideColumn`, `hideColumns`, `sortAscending`, `sortDescending`, `sortBySortIdx`, `clearSorting`, `sortedColumns`, `showSetColumnsPopup`, `limitResizeColumn`, `limitMoveColumn`, `limitToggleFrozenColumn`. 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: IEditingState (16 abstract methods) lib/src/manager/state/editing_state.dart:6 — `IEditingState` declares 16 abstract methods: `isEditing`, `autoEditing`, `textEditingController`, `onValidationFailed`, `editCellRenderer`, `isEditableCell`, `readOnlyGeneration`, `refreshReadOnly`, `setEditing`, `setAutoEditing`, `setTextEditingController`, `toggleEditing`, `pasteCellValue`, `castValueByColumnType`, `changeCellValue`, `updateRowCells`. 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: IGridState (33 abstract methods) lib/src/manager/state/grid_state.dart:4 — `IGridState` declares 33 abstract methods: `gridKey`, `keyManager`, `eventManager`, `configuration`, `mode`, `onChanged`, `onSelected`, `onSorted`, `onRowChecked`, `onRowDoubleTap`, `onRowSecondaryTap`, `onRowEnter`, `onRowExit`, `onRowsMoved`, `onBeforeActiveCellChange`, `onActiveCellChanged`, `onColumnsMoved`, `columnMenuDelegate`, `createHeader`, `createFooter`, `selectDateCallback`, `localeText`, `style`, `sortOnlyEvent`, `filterOnlyEvent`, `setKeyManager`, `setEventManager`, `setConfiguration`, `setGridMode`, `resetCurrentState`, `handleOnSelected`, `setSortOnlyEvent`, `setFilterOnlyEvent`. 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: ILayoutState (59 abstract methods) lib/src/manager/state/layout_state.dart:5 — `ILayoutState` declares 59 abstract methods: `resizingChangeNotifier`, `maxWidth`, `maxHeight`, `headerHeight`, `footerHeight`, `columnRowContainerHeight`, `rowContainerHeight`, `gridGlobalOffset`, `showFrozenColumn`, `showColumnTitle`, `showColumnFooter`, `showColumnFilter`, `showHeader`, `showFooter`, `showLoading`, `loadingLevel`, `customLoadingWidget`, `hasLeftFrozenColumns`, `hasRightFrozenColumns`, `headerBottomOffset`, `footerTopOffset`, `columnHeight`, `columnFooterHeight`, `columnGroupHeight`, `columnFilterHeight`, `columnBottomOffset`, `rowsTopOffset`, `rowHeight`, `rowTotalHeight`, `bodyTopOffset`, `bodyLeftOffset`, `bodyRightOffset`, `bodyLeftScrollOffset`, `bodyRightScrollOffset`, `bodyUpScrollOffset`, `bodyDownScrollOffset`, `leftFrozenRightOffset`, `rightFrozenLeftOffset`, `rightBlankOffset`, `scrollOffsetByFrozenColumn`, and 19 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: IRowGroupState (25 abstract methods) lib/src/manager/state/row_group_state.dart:21 — `IRowGroupState` declares 25 abstract methods: `hasRowGroups`, `enabledRowGroups`, `rowGroupDelegate`, `iterateAllMainRowGroup`, `iterateAllRowGroup`, `iterateAllRowAndGroup`, `iterateAllRow`, `iterateFilteredMainRowGroup`, `iterateMainRowGroup`, `iterateRowGroup`, `iterateRowAndGroup`, `iterateRow`, `isMainRow`, `isNotMainGroupedRow`, `isExpandedGroupedRow`, `setRowGroup`, `toggleExpandedRowGroup`, `expandAllRowGroups`, `collapseAllRowGroups`, `setRowGroupFilter`, `sortRowGroup`, `insertRowGroup`, `removeRowAndGroupByKey`, `removeColumnsInRowGroupByColumn`, `updateRowGroupByHideColumn`. 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: IRowState (35 abstract methods) lib/src/manager/state/row_state.dart:5 — `IRowState` declares 35 abstract methods: `rows`, `refRows`, `checkedRows`, `checkedRowsViaSelect`, `unCheckedRows`, `hasCheckedRow`, `hasUnCheckedRow`, `tristateCheckedRow`, `currentRowIdx`, `currentRow`, `rowWrapper`, `rowColorCallback`, `cellColorCallback`, `rowTextStyleCallback`, `cellTextStyleCallback`, `getRowIdxByOffset`, `getRowByIdx`, `getNewRow`, `getNewRows`, `setRowChecked`, `insertRows`, `prependNewRows`, `prependRows`, `appendNewRows`, `appendRows`, `removeCurrentRow`, `removeRows`, `removeAllRows`, `moveRowsByOffset`, `moveRowsByIndex`, `toggleAllRowChecked`, `setRowHeight`, `resetRowHeight`, `resetAllRowHeights`, `getRowHeight`. 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: ISelectingState (21 abstract methods) lib/src/manager/state/selecting_state.dart:8 — `ISelectingState` declares 21 abstract methods: `isSelecting`, `selectingMode`, `currentSelectingPosition`, `currentSelectingPositionList`, `hasCurrentSelectingPosition`, `currentSelectingRows`, `currentSelectingText`, `setSelecting`, `setSelectingMode`, `setAllCurrentSelecting`, `setCurrentSelectingPosition`, `setCurrentSelectingPositionByCellKey`, `setCurrentSelectingPositionWithOffset`, `setCurrentSelectingRowsByRange`, `clearCurrentSelecting`, `clearRangeSelections`, `toggleSelectingRow`, `isSelectingInteraction`, `isSelectedRow`, `isSelectedCell`, `handleAfterSelectingRow`. 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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 14 significant file(s) lose their only recent owner: lib/src/manager/state/selecting_state.dart, lib/src/widgets/trina_horizontal_scroll_bar.dart, lib/src/widgets/trina_vertical_scroll_bar.dart, lib/src/manager/state/editing_state.dart, lib/src/manager/state/row_state.dart, lib/src/manager/state/layout_state.dart, lib/src/ui/miscellaneous/trina_visibility_layout.dart, lib/src/trina_grid_events.dart (+6 more). Pair on, review, or document these before any departure.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found pubspec.yaml:23 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `pubspec.yaml` makes this repository a deployable product (line 23).
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:3 — No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation example/android/build.gradle:7 — `example/android/build.gradle` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.

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-12fd270d08b24841b069963275dc70b8/history.json --exit-code 0 --source .0artifacts/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=258" --report-format json --report-path /tmp/watchdog-gitleaks-12fd270d08b24841b069963275dc70b8/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.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-12fd270d08b24841b069963275dc70b8/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 .7artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Dart pubspec.yaml — not scanned yet).0—
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Dart pubspec.yaml — not scanned yet).0—

Run 01a1e4a1-f88c-77d3-8b9b-fd2a639238a2 · 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